Bananattack edited this page Mar 5, 2011
·
7 revisions
The Language Reference - Instructions - get
The command this: get src
copies the contents of source argument src into this. The zero
and negative
p-flags are modified accordingly.
Usage | Compatible Receiver (and Opcode, 6502 mnemonic) |
---|---|
this: get a |
x (0xAA, tax ), y (0xA8, tay ), M * |
this: get x |
a (0x8A, txa ), s (0x9A, txs ), M * |
this: get y |
a (0x98, tya ), M * |
this: get s |
x (0xBA, tsx ) |
this: get #immediate |
a (0xA9, lda ), x (0xA2, ldx ), y (0xA0, ldy ) |
this: get @direct |
a (0xAD, lda ), x (0xAE, ldx ), y (0xAC, ldy ) |
this: get @direct[x] |
a (0xBD, lda ), y (0xBC, ldy ) |
this: get @direct[y] |
a (0xB9, lda ), x (0xBE, ldx ) |
this: get @zp |
a (0xA5, lda ), x (0xA6, ldx ), y (0xA4, ldy ) |
this: get @zp[x] |
a (0xB5,lda ), y (0xB4, ldy ) |
this: get @zp[y] |
x (0xB6, ldx ) |
this: get @[zp[x]] |
a (0xA1, lda ) |
this: get @[zp][y] |
a (0xB1, lda ) |
* The code M: get register
is just an alias for register: put M
, and as a result no p-flags are affected by getting a register
into M
. The documentation for put should be consulted for further info.
See also: put