2018-10-23 23:06:29 +00:00
|
|
|
.cpu "65816"
|
2020-06-07 00:30:50 +00:00
|
|
|
zero = $00
|
2018-10-23 23:06:29 +00:00
|
|
|
longsym = $123456
|
|
|
|
|
|
|
|
* = $1000
|
|
|
|
.as
|
|
|
|
.xs
|
|
|
|
clc
|
|
|
|
xce
|
|
|
|
sep #$30
|
2020-06-07 00:30:50 +00:00
|
|
|
jml L440000
|
2018-10-23 23:06:29 +00:00
|
|
|
|
2020-06-07 00:30:50 +00:00
|
|
|
lodat .byte $00
|
2018-10-23 23:06:29 +00:00
|
|
|
.byte $01
|
|
|
|
.byte $02
|
|
|
|
|
|
|
|
.logical $440000
|
2020-06-07 00:30:50 +00:00
|
|
|
L440000 cmp L440000
|
|
|
|
L440004 lda L440000
|
|
|
|
lda @w0+(L440000 & $ffff)
|
|
|
|
lda zero
|
|
|
|
bmi L440004
|
|
|
|
per high44
|
|
|
|
bne high44
|
|
|
|
brl L44FFC0
|
|
|
|
|
|
|
|
dat44 .word 0+(dat44 & $ffff)
|
|
|
|
.long dat44
|
2018-10-23 23:06:29 +00:00
|
|
|
|
|
|
|
.here
|
|
|
|
.logical $44ffc0
|
2020-06-07 00:30:50 +00:00
|
|
|
L44FFC0 cmp L44FFC0
|
|
|
|
high44 beq _L44FFCB
|
|
|
|
bmi L440004
|
|
|
|
brl L440004
|
2018-10-23 23:06:29 +00:00
|
|
|
|
2019-11-17 01:15:03 +00:00
|
|
|
_L44FFCB jml _L2000
|
2018-10-23 23:06:29 +00:00
|
|
|
|
|
|
|
.here
|
|
|
|
.logical $2000
|
2019-11-17 01:15:03 +00:00
|
|
|
_L2000 bit _L2000
|
2020-06-07 00:30:50 +00:00
|
|
|
pea 0+(dat44 & $ffff)
|
|
|
|
pea 0+(dat44 >> 16)
|
2019-11-17 01:15:03 +00:00
|
|
|
bne _L200E
|
2020-06-07 00:30:50 +00:00
|
|
|
jml [lodat]
|
2018-10-23 23:06:29 +00:00
|
|
|
|
2019-11-17 01:15:03 +00:00
|
|
|
_L200E nop
|
2020-06-07 00:30:50 +00:00
|
|
|
jsr j2
|
|
|
|
j2 jsr j2+3
|
|
|
|
jsr j2-3
|
2018-10-23 23:06:29 +00:00
|
|
|
jsl longsym
|
|
|
|
rts
|
|
|
|
|
|
|
|
.here
|