2018-09-28 17:05:11 +00:00
|
|
|
.setcpu "65816"
|
2018-11-18 22:36:03 +00:00
|
|
|
; .segment "SEG000"
|
2018-09-28 17:05:11 +00:00
|
|
|
.org $1000
|
|
|
|
.a8
|
|
|
|
.i8
|
2020-10-19 03:30:42 +00:00
|
|
|
jsr L1006
|
|
|
|
jmp L1020
|
2018-09-28 17:05:11 +00:00
|
|
|
|
2020-10-19 03:30:42 +00:00
|
|
|
L1006: sep #$30
|
2018-09-28 17:05:11 +00:00
|
|
|
lda $00
|
2020-10-19 03:30:42 +00:00
|
|
|
beq @L100F
|
2018-09-28 17:05:11 +00:00
|
|
|
lda #$00
|
2019-08-03 00:21:50 +00:00
|
|
|
brk
|
2018-09-28 17:05:11 +00:00
|
|
|
|
2020-10-19 03:30:42 +00:00
|
|
|
@L100F: sta $012345
|
|
|
|
lda $00
|
|
|
|
beq @L101A
|
|
|
|
lda #$00
|
|
|
|
.byte $85
|
|
|
|
@L101A: .byte $8f
|
|
|
|
eor $23
|
|
|
|
.byte $01
|
2018-09-28 17:05:11 +00:00
|
|
|
nop
|
|
|
|
rts
|
|
|
|
|
2020-10-19 03:30:42 +00:00
|
|
|
L1020: .byte $af
|