2019-09-15 01:51:03 +00:00
|
|
|
.cpu "65816"
|
|
|
|
* = $10f0
|
|
|
|
.as
|
|
|
|
.xs
|
2019-09-16 00:09:00 +00:00
|
|
|
L10F0 sec ;2
|
|
|
|
xce ;2
|
2019-11-17 01:15:03 +00:00
|
|
|
bra _L1108 ;4 crosses page boundary
|
2019-09-15 01:51:03 +00:00
|
|
|
|
|
|
|
.fill 20,$00
|
|
|
|
|
2019-11-17 01:15:03 +00:00
|
|
|
_L1108 bra _L110A ;3
|
2019-09-15 01:51:03 +00:00
|
|
|
|
2019-11-17 01:15:03 +00:00
|
|
|
_L110A lda #$00 ;2
|
|
|
|
beq _L1110 ;3 branch always
|
2019-09-15 01:51:03 +00:00
|
|
|
|
|
|
|
.byte $00
|
|
|
|
.byte $00
|
|
|
|
|
2019-11-17 01:15:03 +00:00
|
|
|
_L1110 bne _L1110 ;2 branch never
|
2019-09-16 00:09:00 +00:00
|
|
|
lda $1234 ;4
|
2019-11-17 01:15:03 +00:00
|
|
|
beq _L1119 ;2+ branch maybe
|
2019-09-16 00:09:00 +00:00
|
|
|
brk ;7 BRK with E=1
|
2019-09-15 01:51:03 +00:00
|
|
|
|
|
|
|
.byte $01
|
|
|
|
|
2019-11-17 01:15:03 +00:00
|
|
|
_L1119 lda $22,s ;4
|
2019-09-16 00:09:00 +00:00
|
|
|
trb $02 ;5+
|
|
|
|
asl $03,x ;6+
|
|
|
|
clc ;2
|
|
|
|
xce ;2
|
|
|
|
rep #$30 ;3
|
2019-09-15 01:51:03 +00:00
|
|
|
.al
|
|
|
|
.xl
|
2019-09-16 00:09:00 +00:00
|
|
|
lda #$0011 ;3
|
|
|
|
ldy #$0022 ;3
|
|
|
|
trb $04 ;7+
|
|
|
|
asl $05,x ;8+
|
|
|
|
ldx $1235 ;5
|
2019-11-17 01:15:03 +00:00
|
|
|
beq _L1134 ;2+
|
2019-09-16 00:09:00 +00:00
|
|
|
brk ;8 BRK with E=0
|
2019-09-15 01:51:03 +00:00
|
|
|
|
|
|
|
.byte $02
|
|
|
|
|
2019-11-17 01:15:03 +00:00
|
|
|
_L1134 lda $33,s ;5
|
|
|
|
beq _L113A ;2+
|
2019-09-16 00:09:00 +00:00
|
|
|
bra L10F0 ;3
|
2019-09-15 01:51:03 +00:00
|
|
|
|
2019-11-17 01:15:03 +00:00
|
|
|
_L113A rep #$20 ;3
|
2019-09-16 00:09:00 +00:00
|
|
|
sep #$10 ;3
|
2019-09-15 01:51:03 +00:00
|
|
|
.xs
|
2019-09-16 00:09:00 +00:00
|
|
|
sta $10 ;4+
|
|
|
|
stx $11 ;3+
|
|
|
|
sty $12 ;3+
|
|
|
|
rep #$10 ;3
|
2019-09-15 01:51:03 +00:00
|
|
|
.xl
|
2019-09-16 00:09:00 +00:00
|
|
|
sep #$20 ;3
|
2019-09-15 01:51:03 +00:00
|
|
|
.as
|
2019-09-16 00:09:00 +00:00
|
|
|
sta $11 ;3+
|
|
|
|
stx $12 ;4+
|
|
|
|
sty $13 ;4+
|
|
|
|
rep #$30 ;3
|
2019-09-15 01:51:03 +00:00
|
|
|
.al
|
2019-09-16 00:09:00 +00:00
|
|
|
lda $1234 ;5
|
|
|
|
adc #$0066 ;3
|
|
|
|
adc $1235 ;5
|
|
|
|
sed ;2 should have no effect on cycle counts on 65816
|
|
|
|
adc #$0077 ;3
|
|
|
|
adc $1236 ;5
|
|
|
|
sec ;2
|
|
|
|
xce ;2
|
2019-09-15 01:51:03 +00:00
|
|
|
.as
|
|
|
|
.xs
|
2019-09-16 00:09:00 +00:00
|
|
|
sbc #$88 ;2
|
|
|
|
sbc $1237 ;4
|
|
|
|
cld ;2
|
|
|
|
sbc #$99 ;2
|
|
|
|
sbc $1238 ;4
|
|
|
|
rts ;6
|
2019-09-15 01:51:03 +00:00
|
|
|
|