Chaptl'r 3. Instruction
Set
STAX
3-62
0 0
1 1
0 0
1 0
low addr
high addr
Cycles:
4
States:
l3
Addressing: direct
Flags:
none
Example:
The following instruction stores a copy
of
the contents
of
the accumulator at memory location SB3H:
STA
SB3H
When assembled, the previous instruction has the hexadecimal value 32
B3
05. Notice that the assembler inverts
the high and low order
addr·ess bytes for proper storage
in
memory.
STORE
ACCUMULATOR
INDIRECT
The STAX instruction stores a copy
of
the contents
of
the accumulator into the memory location addressed
by register pair B or register pair
D.
Opcode Operand
STAX
The operand B specifies
the
Band
C register pair; D specifies the D and E register pair. This instruction may
specify only the B or D register
pair.
Example:
10001
10
0
~
Cycles:
States:
Addressing:
Flags:
'-v-"
l{o
= register pair B
1
= register pair D
2
7
register indirect
none
If register B contains 3FH
.and
register C contains 16H, the following instruction stores a copy
of
the contents
of the accumulator
at
memory location 3F16H:
STAX B