English
Language : 

GMS30C2116 Datasheet, PDF (32/322 Pages) Hynix Semiconductor – USERS MANUAL
1-12
CHAPTER 1
1.2.2 Status Register SR, G1 (continued)
Note: Since a Return instruction following an exception clears the ILC, a
program must not rely on the current value of the ILC.
FL
Frame Length. Bits 24..21 represent the frame length FL. The FL holds the
number of usable local registers (maximum 16) assigned to the current stack
frame. FL = 0 is always interpreted as FL = 16.
FP
Frame Pointer. Bits 31..25 represent the frame pointer FP. The least significant
six bits of the FP point to the beginning of the current stack frame in the local
register set, that is, they point to L0.
The FP contains bit 8..2 of the address at which the content of L0 would be
stored if pushed onto the memory part of the stack.
1.2.3 Floating-Point Exception Register FER, G2
G2 is the floating-point exception register. All bits must be cleared to zero after Reset.
Only bits 12..8 and 4..0 may be changed by a user program, all other bits must remain
unchanged.
31
13 12 11 10 9 8 7 6 5 4 3 2 1 0
Reserved
Reserved for Operating System
Floating-Point Actual Exceptions
Floating-Point Accrued Exceptions
Figure 1.8: Floating-Point Exception Register
The floating-point trap enable flags FTE and the exception flags are assigned as:
floating-point
trap enable FTE
SR(12)
SR(11)
SR(10)
SR(9)
SR(8)
accrued
exceptions
G2(4)
G2(3)
G2(2)
G2(1)
G2(0)
actual
exceptions
G2(12)
G2(11)
G2(10)
G2(9)
G2(8)
exception type
Invalid Operation
Division by Zero
Overflow
Underflow
Inexact
The reserved bits G2(31..13) and G2(7..5) must be zero.
A floating-point instruction, except a Floating-point Compare, can raise any of the
exceptions Invalid Operation, Division by Zero, Overflow, Underflow or Inexact. FCMP
and FCMPD can raise only the Invalid Operation exception (at unordered). FCMPU and
FCMPUD cannot raise any exception.