Literals

In this section:

An instruction operand may be a constant (literal). In this case the constant must be preceded by an '='. Floating point instructions may have literal arguments, which are placed in memory and addressed, since there is no immediate form of these instructions.

Literals may contain any constant expression (which will be evaluated using the standard Fortran rules) and may be of any type. For example:

FLD      =5.0
DFADD    =5.0D0                  ;Note REAL*8
                                 ; constant needed
MOV      EAX%,=(4*5)             ;Load 20 into EAX%
TEST     FRED,=Z'FEFFFFFF'       ;Hex constant

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited