1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2025-04-22 03:38:31 +00:00

Added missing fragments. Fixed problem with addition fragments.

This commit is contained in:
jespergravgaard 2020-09-27 22:58:38 +02:00
parent adf63a551d
commit 53ed7c976d
22 changed files with 116 additions and 14 deletions

View File

@ -1,4 +1,4 @@
//KICKC FRAGMENT CACHE 148111253e 1481113e09
//KICKC FRAGMENT CACHE 13bb8fa634 13bb8fbf63
//FRAGMENT vbuz1=vbuc1
lda #{c1}
sta {z1}

View File

@ -1,4 +1,4 @@
//KICKC FRAGMENT CACHE 148111253e 1481113e09
//KICKC FRAGMENT CACHE 13bb8fa634 13bb8fbf63
//FRAGMENT _deref_pbuc1=vbuc2
lda #{c2}
sta {c1}

View File

@ -1,4 +1,4 @@
//KICKC FRAGMENT CACHE 148111253e 1481113e09
//KICKC FRAGMENT CACHE 13bb8fa634 13bb8fbf63
//FRAGMENT vbuz1=vbuc1
lda #{c1}
sta {z1}

View File

@ -1,4 +1,4 @@
//KICKC FRAGMENT CACHE 148111253e 1481113e09
//KICKC FRAGMENT CACHE 13bb8fa634 13bb8fbf63
//FRAGMENT vbuz1=vbuc1
lda #{c1}
sta {z1}
@ -17829,6 +17829,11 @@ tax
//FRAGMENT vbuyy=_byte_pwuc1_derefidx_vbuyy
lda {c1},y
tay
//FRAGMENT pprz1=_deref_qprc1
lda {c1}
sta {z1}
lda {c1}+1
sta {z1}+1
//FRAGMENT vbuaa_le_vbuyy_then_la1
sta $ff
cpy $ff
@ -17904,8 +17909,3 @@ sta {c1},x
lda #{c2}
ora {c1},y
sta {c1},y
//FRAGMENT pprz1=_deref_qprc1
lda {c1}
sta {z1}
lda {c1}+1
sta {z1}+1

View File

@ -1,4 +1,4 @@
//KICKC FRAGMENT CACHE 148111253e 1481113e09
//KICKC FRAGMENT CACHE 13bb8fa634 13bb8fbf63
//FRAGMENT vbuz1=_deref_pbuc1
lda {c1}
sta {z1}

View File

@ -0,0 +1,7 @@
clc
lda {c1},x
adc #{c2}
sta {c1},x
lda {c1}+1,x
adc #0
sta {c1}+1,x

View File

@ -3,5 +3,5 @@ lda {c1},y
adc #{c2}
sta {c1},x
lda {c1}+1,y
lda #0
adc #0
sta {c1}+1,x

View File

@ -3,5 +3,5 @@ lda {c1},x
adc #{c2}
sta {c1},y
lda {c1}+1,x
lda #0
adc #0
sta {c1}+1,y

View File

@ -3,5 +3,5 @@ lda {c1},y
adc {c2},x
sta {c1},y
lda {c1}+1,y
lda {c2}+1,x
adc {c2}+1,x
sta {c1}+1,y

View File

@ -3,5 +3,5 @@ lda {c1},y
adc {c2},y
sta {c1},y
lda {c1}+1,y
lda {c2}+1,y
adc {c2}+1,y
sta {c1}+1,y

View File

@ -0,0 +1,7 @@
clc
lda {c1},y
adc #{c2}
sta {c1},y
lda {c1}+1,y
adc #0
sta {c1}+1,y

View File

@ -0,0 +1,7 @@
lda {c1}+1,y
sta {m1}
ora #$7f
bmi !+
lda #0
!:
sta {m1}+1

View File

@ -0,0 +1,9 @@
sta $ff
lda {m1}
cmp $ff
lda {m1}+1
sbc #0
bvc !+
eor #$80
!:
bpl {la1}

View File

@ -0,0 +1,8 @@
lda {m1}
cmp #{c1}
lda {m1}+1
sbc #0
bvc !+
eor #$80
!:
bpl {la1}

View File

@ -0,0 +1,8 @@
lda {m1}
cmp {m2}
lda {m1}+1
sbc #0
bvc !+
eor #$80
!:
bpl {la1}

View File

@ -0,0 +1,9 @@
stx $ff
lda {m1}
cmp $ff
lda {m1}+1
sbc #0
bvc !+
eor #$80
!:
bpl {la1}

View File

@ -0,0 +1,9 @@
sty $ff
lda {m1}
cmp $ff
lda {m1}+1
sbc #0
bvc !+
eor #$80
!:
bpl {la1}

View File

@ -0,0 +1,8 @@
sta $ff
lda {m1}+1
bmi {la1}
bne !+
lda {m1}
cmp $ff
bcc {la1}
!:

View File

@ -0,0 +1,7 @@
lda {m1}+1
bmi {la1}
bne !+
lda {m1}
cmp #{c1}
bcc {la1}
!:

View File

@ -0,0 +1,7 @@
lda {m1}+1
bmi {la1}
bne !+
lda {m1}
cmp {m2}
bcc {la1}
!:

View File

@ -0,0 +1,8 @@
stx $ff
lda {m1}+1
bmi {la1}
bne !+
lda {m1}
cmp $ff
bcc {la1}
!:

View File

@ -0,0 +1,8 @@
sty $ff
lda {m1}+1
bmi {la1}
bne !+
lda {m1}
cmp $ff
bcc {la1}
!: