LDY
LDY
LDY - load Y
Description
LDY loads a value into the Y register
Flags affected | ||||||
---|---|---|---|---|---|---|
N | Z | C | I | D | V | |
+ | + | - | - | - | - |
Addressing Mode | Assembly | OpCode | No. Bytes. | No. Cycles |
---|---|---|---|---|
Immediate | LDY #Oper | a0 | 2 | 2 |
Zero Page | LDY Oper | a4 | 2 | 3 |
Zero Page, X | LDY Oper, X | b4 | 2 | 4 |
Absolute | LDY Oper | ac | 3 | 4 |
Absolute, X | LDY Oper, X | bc | 3 | 4 [ 1 ] |
[ 1 ] Add 1 if page crossed.
Examples
LDY $1099
This will load the contents of memory address $1099 into Y.
Related Pages
- STY - store Y
- LDA - load the accumulator.
- LDX - load X
page revision: 8, last edited: 15 Jul 2012 05:19