APPENDIX
Appendix 6. Machine instructions
Addressing Modes
Operation
Symbol
Function
IMP
op
IMM
A
n
DIR DIR, X DIR, Y (DIR) (DIR, X) (DIR), Y L(DIR) L(DIR), Y
length (Bit)
n
#
op
n
#
op
# op n # op
n # op n # op n # op n # op n # op n # op n #
x = 0
PLX
16/8
S←S + 1
XL←M(S)
S←S + 1
XH←M(S)
x = 1
S←S + 1
XL←M(S)
x = 0
PLY
16/8
S←S + 1
YL←M(S)
S←S + 1
YH←M(S)
x = 1
S←S + 1
YL←M(S)
PSH
(Note 17)
M(S to S – i + 1)←A, B, X…
S←S – i
i: Number of bytes corresponding
to register pushed on stack
16/8
16/8
PUL
(Notes 18
and 22)
A, B, X…←M(S + 1 to S + i)
S←S + i
i: Number of bytes corresponding
to register restored from stack
RLA
(Note 3)
Rotate to the left by n bits
16/8
31
07
5
+
n
3
m = 0
← b15 … b0 ←
m = 1 (n = 0 to 255)
(n = 0 to 65535)
A
A
L
← b7 … b0 ←
RMPA
(Note 19)
m = 0
Repeat
(B, A)←(B, A) + M(DT:X)✕
M(DT:Y) (Signed)
X←X + 2
16/8
Y←Y + 2
i←i – 1
Until i = 0
m = 1
Repeat
(BL, AL)←(BL, AL)+M(DT,X)
M(DT,Y) (Signed)
X←X + 1
Y←Y + 1
i←i – 1
Until i = 0
i: Numder of repetitions (0 to 255)
7906 Group User’s Manual Rev.2.0
20-82