1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-06-03 07:29:37 +00:00

Added missing test.

This commit is contained in:
jespergravgaard 2021-10-14 08:07:42 +02:00
parent e826accb9c
commit a74a36df35
8 changed files with 73 additions and 0 deletions

View File

@ -0,0 +1,5 @@
lda {m1}
ora {m1}+1
ora {m1}+2
ora {m1}+3
beq {la1}

View File

@ -0,0 +1,5 @@
lda {m1}
ora {m1}+1
ora {m1}+2
ora {m1}+3
bne {la1}

View File

@ -0,0 +1,13 @@
clc
lda {m1}
adc #1
sta {m2}
lda {m1}+1
adc #0
sta {m2}+1
lda {m1}+2
adc #0
sta {m2}+2
lda {m1}+3
adc #0
sta {m2}+3

View File

@ -0,0 +1,10 @@
lda {m2}+2
sta {m1}
lda {m2}+3
sta {m1}+1
and #$80
beq !+
lda #$ff
!:
sta {m1}+2
sta {m1}+3

View File

@ -0,0 +1,10 @@
lda {m2}+3
sta {m1}
and #$80
beq !+
lda #$ff
!:
sta {m1}+1
sta {m1}+2
sta {m1}+3

View File

@ -0,0 +1,11 @@
lda {m2}+1
sta {m1}
lda {m2}+2
sta {m1}+1
lda {m2}+3
sta {m1}+2
and #$80
beq !+
lda #$ff
!:
sta {m1}+3

View File

@ -0,0 +1,12 @@
lda {m1}
cmp {m2}
lda {m1}+1
sbc {m2}+1
lda {m1}+2
sbc {m2}+2
lda {m1}+3
sbc {m2}+3
bvc !+
eor #$80
bmi {la1}
!:

View File

@ -0,0 +1,7 @@
lda {m1}+2
sta {m1}
lda {m1}+3
sta {m1}+1
lda #0
sta {m1}+2
sta {m1}+3