1
0
mirror of https://github.com/ksherlock/x65.git synced 2025-01-04 04:32:25 +00:00
x65/test/AddrMode_65816.s

72 lines
893 B
ArmAsm
Raw Normal View History

cpu 65816
Test65816_ForceAddrMode:
i8
ldx #0
i16
ldx #0
a8
lda #0
a16
lda #0
lda.b #0
{
jmp >$123456
lda >$123456,x
lda (<$1234,s),y
ora ($21,x)
jsr ($2120,x)
lda [<$1234],y
lda (<$1234,x)
lda <$101030
}
{
lda.z $101030 // .z zero page
if !((*-!) == 2)
err Expected zero page instruction
endif
}
{
lda.a $101030 // .a force absolute
if !((*-!) == 3)
err Expected zero page instruction
endif
}
{
lda.l $30 // .l force long
if !((*-!) == 4)
err Expected zero page instruction
endif
}
{
lda <$101030 // <addr zero page
if !((*-!) == 2)
err Expected zero page instruction
endif
}
{
lda |$101030 // |addr force absolute
if !((*-!) == 3)
err Expected zero page instruction
endif
}
{
lda >$101030 // .l force long
if !((*-!) == 4)
err Expected zero page instruction
endif
}
{
jmp [$1010]
}
rts