2018-10-23 23:06:29 +00:00
|
|
|
.cpu "65816"
|
|
|
|
* = $1000
|
|
|
|
.as
|
|
|
|
.xs
|
|
|
|
clc
|
|
|
|
xce
|
|
|
|
sep #$ff
|
|
|
|
clv
|
|
|
|
cld
|
|
|
|
cli
|
|
|
|
clc
|
|
|
|
lda #$80
|
|
|
|
lda #$01
|
|
|
|
sed
|
|
|
|
sei
|
|
|
|
sec
|
|
|
|
lda #$ff
|
|
|
|
adc #$00
|
|
|
|
sep #$ff
|
|
|
|
rep #$80
|
|
|
|
rep #$40
|
|
|
|
rep #$20
|
|
|
|
.al
|
|
|
|
rep #$10
|
|
|
|
.xl
|
|
|
|
rep #$08
|
|
|
|
rep #$04
|
|
|
|
rep #$02
|
|
|
|
rep #$01
|
|
|
|
sep #$00
|
|
|
|
sep #$ff
|
|
|
|
.as
|
|
|
|
.xs
|
|
|
|
rep #$00
|
|
|
|
rep #$ff
|
|
|
|
.al
|
|
|
|
.xl
|
|
|
|
lda #$feed
|
|
|
|
sec
|
|
|
|
xce
|
|
|
|
.as
|
|
|
|
.xs
|
|
|
|
lda #$ff
|
|
|
|
rep #$30
|
|
|
|
lda #$ff
|
|
|
|
clc
|
|
|
|
xce
|
|
|
|
lda #$ff
|
|
|
|
rep #$20
|
|
|
|
.al
|
|
|
|
sep #$10
|
|
|
|
lda #$0000
|
|
|
|
ldx #$01
|
|
|
|
ldy #$02
|
|
|
|
sep #$20
|
|
|
|
.as
|
|
|
|
rep #$10
|
|
|
|
.xl
|
|
|
|
lda #$01
|
|
|
|
ldx #$0000
|
|
|
|
ldy #$0000
|
|
|
|
sep #$30
|
|
|
|
.xs
|
|
|
|
lda #$00
|
|
|
|
pha
|
|
|
|
plp
|
|
|
|
rep #$80
|
|
|
|
bpl L105F
|
|
|
|
|
|
|
|
.byte $00
|
|
|
|
.byte $00
|
|
|
|
|
|
|
|
L105F sep #$80
|
2019-11-17 01:15:03 +00:00
|
|
|
bpl _L1065
|
|
|
|
bmi _L1067
|
2018-10-23 23:06:29 +00:00
|
|
|
|
2019-11-17 01:15:03 +00:00
|
|
|
_L1065 .byte $00
|
2018-10-23 23:06:29 +00:00
|
|
|
.byte $00
|
|
|
|
|
2019-11-17 01:15:03 +00:00
|
|
|
_L1067 rep #$40
|
|
|
|
bvc _L106D
|
2018-10-23 23:06:29 +00:00
|
|
|
|
|
|
|
.byte $00
|
|
|
|
.byte $00
|
|
|
|
|
2019-11-17 01:15:03 +00:00
|
|
|
_L106D sep #$40
|
|
|
|
bvs _L1073
|
2018-10-23 23:06:29 +00:00
|
|
|
|
|
|
|
.byte $00
|
|
|
|
.byte $00
|
|
|
|
|
2019-11-17 01:15:03 +00:00
|
|
|
_L1073 rep #$01
|
|
|
|
bcc _L1079
|
2018-10-23 23:06:29 +00:00
|
|
|
|
|
|
|
.byte $00
|
|
|
|
.byte $00
|
|
|
|
|
2019-11-17 01:15:03 +00:00
|
|
|
_L1079 sep #$01
|
|
|
|
bcs _L107F
|
2018-10-23 23:06:29 +00:00
|
|
|
|
|
|
|
.byte $00
|
|
|
|
.byte $00
|
|
|
|
|
2019-11-17 01:15:03 +00:00
|
|
|
_L107F rep #$02
|
|
|
|
bne _L1085
|
2018-10-23 23:06:29 +00:00
|
|
|
|
|
|
|
.byte $00
|
|
|
|
.byte $00
|
|
|
|
|
2019-11-17 01:15:03 +00:00
|
|
|
_L1085 sep #$02
|
|
|
|
beq _L108B
|
2018-10-23 23:06:29 +00:00
|
|
|
|
|
|
|
.byte $00
|
|
|
|
.byte $00
|
|
|
|
|
2019-11-17 01:15:03 +00:00
|
|
|
_L108B sep #$ff
|
2018-10-23 23:06:29 +00:00
|
|
|
lda #$01
|
2019-11-17 01:15:03 +00:00
|
|
|
bne _L1093
|
2018-10-23 23:06:29 +00:00
|
|
|
|
|
|
|
.byte $00
|
|
|
|
.byte $db
|
|
|
|
|
2019-11-17 01:15:03 +00:00
|
|
|
_L1093 lda #$00
|
|
|
|
beq _L1099
|
2018-10-23 23:06:29 +00:00
|
|
|
|
|
|
|
.byte $00
|
|
|
|
.byte $db
|
|
|
|
|
2019-11-17 01:15:03 +00:00
|
|
|
_L1099 bpl _L109D
|
2018-10-23 23:06:29 +00:00
|
|
|
|
|
|
|
.byte $00
|
|
|
|
.byte $db
|
|
|
|
|
2019-11-17 01:15:03 +00:00
|
|
|
_L109D lda #$80
|
|
|
|
bmi _L10A3
|
2018-10-23 23:06:29 +00:00
|
|
|
|
|
|
|
.byte $00
|
|
|
|
.byte $db
|
|
|
|
|
2019-11-17 01:15:03 +00:00
|
|
|
_L10A3 lda #$ff
|
2018-10-23 23:06:29 +00:00
|
|
|
and #$00
|
2019-11-17 01:15:03 +00:00
|
|
|
beq _L10AB
|
2018-10-23 23:06:29 +00:00
|
|
|
|
|
|
|
.byte $00
|
|
|
|
.byte $db
|
|
|
|
|
2019-11-17 01:15:03 +00:00
|
|
|
_L10AB lda #$00
|
2020-05-02 00:25:18 +00:00
|
|
|
ldx #$80
|
2018-10-23 23:06:29 +00:00
|
|
|
and #$ff
|
2020-05-02 00:25:18 +00:00
|
|
|
beq _L10B5
|
|
|
|
bne _L10B5
|
|
|
|
|
|
|
|
_L10B5 lda #$ff
|
|
|
|
ldx #$00
|
|
|
|
and #$7f
|
|
|
|
beq _L10BF
|
|
|
|
bne _L10BF
|
|
|
|
|
|
|
|
_L10BF bpl _L10C3
|
2018-10-23 23:06:29 +00:00
|
|
|
|
|
|
|
.byte $00
|
|
|
|
.byte $db
|
|
|
|
|
2020-05-02 00:25:18 +00:00
|
|
|
_L10C3 lda #$ff
|
|
|
|
and #$80
|
|
|
|
bmi _L10CB
|
2020-02-02 00:24:14 +00:00
|
|
|
brk
|
2018-10-23 23:06:29 +00:00
|
|
|
|
|
|
|
.byte $db
|
|
|
|
|
2020-05-02 00:25:18 +00:00
|
|
|
_L10CB lda #$00
|
|
|
|
ldx #$80
|
|
|
|
bne _L10D3
|
2018-10-23 23:06:29 +00:00
|
|
|
|
|
|
|
.byte $00
|
|
|
|
.byte $db
|
|
|
|
|
2020-05-02 00:25:18 +00:00
|
|
|
_L10D3 ora #$00
|
|
|
|
beq _L10D9
|
|
|
|
bne _L10D9
|
2018-10-23 23:06:29 +00:00
|
|
|
|
2020-05-02 00:25:18 +00:00
|
|
|
_L10D9 ora #$01
|
|
|
|
bne _L10DF
|
2018-10-23 23:06:29 +00:00
|
|
|
|
|
|
|
.byte $00
|
|
|
|
.byte $db
|
|
|
|
|
2020-05-02 00:25:18 +00:00
|
|
|
_L10DF lda #$00
|
|
|
|
ldx #$80
|
|
|
|
bmi _L10E7
|
2018-10-23 23:06:29 +00:00
|
|
|
|
|
|
|
.byte $00
|
|
|
|
.byte $db
|
|
|
|
|
2020-05-02 00:25:18 +00:00
|
|
|
_L10E7 ora #$7f
|
|
|
|
bpl _L10EF
|
|
|
|
bmi _L10EF
|
2018-10-23 23:06:29 +00:00
|
|
|
|
|
|
|
.byte $00
|
|
|
|
.byte $db
|
|
|
|
|
2020-05-02 00:25:18 +00:00
|
|
|
_L10EF ora #$80
|
|
|
|
bmi _L10F5
|
2018-10-23 23:06:29 +00:00
|
|
|
|
|
|
|
.byte $00
|
|
|
|
.byte $db
|
|
|
|
|
2020-05-02 00:25:18 +00:00
|
|
|
_L10F5 lda _L10F5
|
2018-10-23 23:06:29 +00:00
|
|
|
sec
|
|
|
|
ror a
|
2020-05-02 00:25:18 +00:00
|
|
|
bmi _L10FE
|
2018-10-23 23:06:29 +00:00
|
|
|
|
|
|
|
.byte $00
|
|
|
|
.byte $dc
|
|
|
|
|
2020-05-02 00:25:18 +00:00
|
|
|
_L10FE clc
|
2018-10-23 23:06:29 +00:00
|
|
|
ror a
|
2020-05-02 00:25:18 +00:00
|
|
|
bpl _L1104
|
2018-10-23 23:06:29 +00:00
|
|
|
|
|
|
|
.byte $00
|
|
|
|
.byte $dc
|
|
|
|
|
2020-05-02 00:25:18 +00:00
|
|
|
_L1104 lda #$00
|
2018-10-23 23:06:29 +00:00
|
|
|
sec
|
|
|
|
rol a
|
2020-05-02 00:25:18 +00:00
|
|
|
bne _L110C
|
2018-10-23 23:06:29 +00:00
|
|
|
|
|
|
|
.byte $00
|
|
|
|
.byte $dc
|
|
|
|
|
2020-05-02 00:25:18 +00:00
|
|
|
_L110C lda #$ff
|
2020-04-24 00:23:12 +00:00
|
|
|
lsr a
|
2020-05-02 00:25:18 +00:00
|
|
|
bpl _L1113
|
2020-04-24 00:23:12 +00:00
|
|
|
|
|
|
|
.byte $00
|
|
|
|
.byte $dd
|
|
|
|
|
2020-05-02 00:25:18 +00:00
|
|
|
_L1113 clc
|
2018-10-23 23:06:29 +00:00
|
|
|
php
|
|
|
|
sec
|
|
|
|
plp
|
2020-05-02 00:25:18 +00:00
|
|
|
bcc _L111B
|
2020-07-30 23:57:33 +00:00
|
|
|
brk
|
2018-10-23 23:06:29 +00:00
|
|
|
|
|
|
|
.byte $00
|
|
|
|
|
2020-05-02 00:25:18 +00:00
|
|
|
_L111B sec
|
|
|
|
bcs _L111F
|
2019-09-17 21:38:16 +00:00
|
|
|
|
2020-05-02 00:25:18 +00:00
|
|
|
_L111E clc
|
|
|
|
_L111F lda $33
|
|
|
|
beq _L111E
|
|
|
|
bcs _L1127
|
2019-09-17 21:38:16 +00:00
|
|
|
lda $44
|
2020-05-02 00:25:18 +00:00
|
|
|
_L1127 nop
|
2019-09-17 21:38:16 +00:00
|
|
|
rep #$20
|
2018-10-23 23:06:29 +00:00
|
|
|
.al
|
|
|
|
sep #$10
|
2020-05-02 00:25:18 +00:00
|
|
|
jsr _L1143
|
2018-10-23 23:06:29 +00:00
|
|
|
rep #$30
|
|
|
|
.xl
|
2020-05-02 00:25:18 +00:00
|
|
|
jsr _L1149
|
2018-10-23 23:06:29 +00:00
|
|
|
sep #$30
|
|
|
|
.as
|
|
|
|
.xs
|
2020-05-02 00:25:18 +00:00
|
|
|
jsr _L1149
|
2018-10-23 23:06:29 +00:00
|
|
|
rep #$20
|
|
|
|
.al
|
|
|
|
sep #$10
|
2020-05-02 00:25:18 +00:00
|
|
|
jsr _L1143
|
2018-10-23 23:06:29 +00:00
|
|
|
sep #$30
|
|
|
|
.as
|
|
|
|
rts
|
|
|
|
|
|
|
|
.al
|
2020-05-02 00:25:18 +00:00
|
|
|
_L1143 lda #$1234
|
2018-10-23 23:06:29 +00:00
|
|
|
ldx #$ff
|
|
|
|
rts
|
|
|
|
|
|
|
|
.as
|
2020-05-02 00:25:18 +00:00
|
|
|
_L1149 lda #$ff
|
2018-10-23 23:06:29 +00:00
|
|
|
ldx #$ee
|
|
|
|
ldy #$dd
|
|
|
|
rts
|
|
|
|
|