(5) Immediate constants addressing
The value of a constant can follow the opcode in Program mem-
ory.
Example;
HMS9xC7132 / HMS9xC7134
mov A, #100H.
(6)Indexed addressing
Only Program memory can be accessed with indexed addressing,
and it can only be read. This addressing mode is intended for
reading look-up tables in Program memory. A 16-bit base register
(either DPTR or PC) points to the base of the table, and the Ac-
cumulator is set up with the table entry number. The address of
the table entry in Program memory is formed by adding the Ac-
cumulator data to the base pointer.
Example;
movc A, @A+DPTR
ACC
3A
DPTR
1E73
PROG. MEMORY
~~
~~
1EADH
May.2001 ver1.1
23