mirror of
https://github.com/ksherlock/x65.git
synced 2025-01-19 12:32:44 +00:00
43 lines
516 B
ArmAsm
43 lines
516 B
ArmAsm
|
cpu 65816
|
||
|
Test65816_ForceAddrMode:
|
||
|
{
|
||
|
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
|
||
|
}
|
||
|
|
||
|
|
||
|
{
|
||
|
jmp [$1010]
|
||
|
}
|
||
|
|
||
|
rts
|
||
|
|