Representing immediate value, Source language syntax – Zilog EZ80F916 User Manual
Page 245

UM014423-0607
ZiLOG Developer Studio II
eZ80Acclaim!
®
User Manual
225
Representing Immediate Value
The following are examples of instructions of the
ld r, n
type:
1. ld a, 1*2
2. ld a, #1*2
3. ld a, #(1*2)
The eZ80Acclaim! assembler accepts an optional prefix character
#
for the immediate
addressing mode as given in (1) and (2).
For the third case, the prefix character
#
is mandatory because it conflicts with the indirect
addressing mode. For example:
ld a, (1*2) ;3A0200
Assembled as
ld a, (Mmn)
ld a, #(1*2) ;3E02
Assembled as
ld a, n
SOURCE LANGUAGE SYNTAX
The syntax description that follows is given to outline the general assembler syntax. It
does not define assembly language instructions.
F
Only used as part of the AF or AF’ register pair. The F
register contains the six status bits used by the
eZ80Acclaim!.
Register Pair Addressing Mode
AF
Only used with PUSH and POP instructions
AF’
Only used in
EX AF,AF’
instruction
8-Bit Control Registers
I
IXH
IXL
IYH
IYL
MBASE
Only used in
LD A,MB
instruction where MB stands for
MBASE
R
SP
The ADL mode indicates whether SPS or SPL is
actually used.
<source_line>
=>
<if_statement>
Table 11. eZ80Acclaim! Addressing Modes (Continued)
Addressing Modes
Symbolic Name
Notes