Login
Plus/4 EncyclopediaFirstBackNextLast

LDY
Category
Reference/6502 Programming/Assembly

Topic
LDY - LoaD Y register

Affects Flags: S Z

Loads a memory byte (or an immediate value) into the Y register.

Examples
LDY #$00 Y register will be equal to zero
LDY $FF19 Y register will be equal to whatever the value of memory location $FF19 is

Opcodes
Addressing modeSyntaxOpcodeBytesCycles
Immediate addressing modeLDY #$44$A022
Zero PageLDY $44$A423
Zero Page,XLDY $44,X$B424
Absolute addressing modeLDY $4400$AC34
Absolute,XLDY $4400,X$BC34+


+ add 1 cycle if page boundary crossed


See Also
LDX, LDA 



Copyright © Plus/4 World Team, 2001-2024. Support Plus/4 World on Patreon