High Byte/Low Byte


Home
Using High byte/Low byte values.


If you wish to use the high or low byte value of a 16 bit word value such as

word value you are using $0314

lda #$03 ;high byte
ldx #$14 ;low byte
sta vectorhigh
stx vectorlow

You may do the following.

address=$0314

lda > address ;high byte
ldx < address ;low byte
sta vectorhigh
stx vectorlow

If you wish to use high/low byte in data sections.
byte >$0314,<$0314
byte > address,< address
will work fine.