; Copyright 2000 Pace Micro Technology plc
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
;     http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.
;
        SUBT    FPA Specific Definitions

OldOpt  SETA    {OPT}
        OPT     OptNoList+OptNoP1List

        ; Standard register names

f0      FN      0
F0      FN      f0
f1      FN      1
F1      FN      f1
f2      FN      2
F2      FN      f2
f3      FN      3
F3      FN      f3
f4      FN      4
F4      FN      f4
f5      FN      5
F5      FN      f5
f6      FN      6
F6      FN      f6
f7      FN      7
F7      FN      f7

        ; FPSR flag positions

IOC_pos         EQU     0
DZC_pos         EQU     1
OFC_pos         EQU     2
UFC_pos         EQU     3
IXC_pos         EQU     4

ND_pos          EQU     8
NE_pos          EQU     9
SO_pos          EQU     10
EP_pos          EQU     11
AC_pos          EQU     12

IOE_pos         EQU     16
DZE_pos         EQU     17
OFE_pos         EQU     18
UFE_pos         EQU     19
IXE_pos         EQU     20

SysID_pos       EQU     24

        ; FPSR flag specifiers

IOC_bit         EQU     1:SHL:IOC_pos
DZC_bit         EQU     1:SHL:DZC_pos
OFC_bit         EQU     1:SHL:OFC_pos
UFC_bit         EQU     1:SHL:UFC_pos
IXC_bit         EQU     1:SHL:IXC_pos

ND_bit          EQU     1:SHL:ND_pos
NE_bit          EQU     1:SHL:NE_pos
SO_bit          EQU     1:SHL:SO_pos
EP_bit          EQU     1:SHL:EP_pos
AC_bit          EQU     1:SHL:AC_pos

IOE_bit         EQU     1:SHL:IOE_pos
DZE_bit         EQU     1:SHL:DZE_pos
OFE_bit         EQU     1:SHL:OFE_pos
UFE_bit         EQU     1:SHL:UFE_pos
IXE_bit         EQU     1:SHL:IXE_pos

SysID_mask      EQU     &FF:SHL:SysID_pos

SysID_oldFPE    EQU     &00
SysID_FPE       EQU     &01
SysID_FPPC      EQU     &80
SysID_FPA       EQU     &81

        OPT     OldOpt
        END
