1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-12-28 16:31:36 +00:00

Added missing fragments from @mark.j.fisher.See #550

This commit is contained in:
jespergravgaard 2020-10-30 10:15:02 +01:00
parent d9fab8eb23
commit b79425ee48
10 changed files with 83 additions and 0 deletions

View File

@ -0,0 +1,4 @@
ldx {m2}+1
bne {la1}
cmp {m2}
bcc {la1}

View File

@ -0,0 +1,5 @@
lda {m2}+1
bne {la1}
lda {m1}
cmp {m2}
bcc {la1}

View File

@ -0,0 +1,9 @@
lda {m1}+1
bmi !+
cmp {m2}+1
bcs {la1}
beq {la1}
lda {m2}
cmp {m1}
bcc {la1}
!:

View File

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

View File

@ -0,0 +1,11 @@
sta {m1}
lda #0
sta {m1}+1
cpx #0
beq !e+
!:
asl {m1}
rol {m1}+1
dex
bne !-
!e:

View File

@ -0,0 +1,11 @@
sta {m1}
lda #0
sta {m1}+1
cpy #0
beq !e+
!:
asl {m1}
rol {m1}+1
dey
bne !-
!e:

View File

@ -0,0 +1,12 @@
lda #<{c1}
sta {m1}
lda #>{c1}+1
sta {m1}+1
cpx #0
beq !e+
!:
asl {m1}
rol {m1}+1
dex
bne !-
!e:

View File

@ -0,0 +1,12 @@
lda #<{c1}
sta {m1}
lda #>{c1}+1
sta {m1}+1
cpy #0
beq !e+
!:
asl {m1}
rol {m1}+1
dey
bne !-
!e:

View File

@ -0,0 +1,6 @@
lda {m1}
and {m2}
sta {m1}
lda {m1}+1
and {m2}+1
sta {m1}+1

View File

@ -0,0 +1,4 @@
and {m2}
sta {m1}
lda #0
sta {m1}+1