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

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution 2.5 License.