ldaa, ldab, ldd, lds, ldx, ldy
| HLL Code | Corresponding Assembly Code |
|---|---|
a = value; | ldaa value |
b = value; | ldab value |
d = value; | ldd value |
s = value; | lds value |
x = value; | ldx value |
y = value; | ldy value |
a = 0; | clra |
b = 0; | clrb |
value may be either a constant using "#" to specify
immediate addressing or a variable.
staa, stab, std, sts, stx, sty
| HLL Code | Corresponding Assembly Code |
|---|---|
variable = a; | staa variable |
variable = b; | stab variable |
variable = d; | std variable |
variable = s; | sts variable |
variable = x; | stx variable |
variable = y; | sty variable |
variable = 0; | clr variable |
tab, tap, tba, tpa, tsx, tsy, txs, tys, xgdx, xgdy
| HLL code | Corresponding Assembly Code |
|---|---|
b = a; | tab |
ccr = a; | tap |
a = b; | tba |
x = s+1; | tsx |
y = s+1; | tsy |
s = x-1; | txs |
s = y-1; | tys |
swap(d, x); | xgdx |
swap(d, y); | xgdy |
psha, pshb, pshx, pshy,
pula, pulb, pulx, puly
#sym Operand is symsym Operand is M[sym]
(eight bit address)sym Operand is M[sym]
(sixteen bit address)
sym,x Operand is M[sym+x]sym,y Operand is M[sym+y]