mirror of
https://gitlab.com/camelot/kickc.git
synced 2025-01-11 04:29:53 +00:00
Added missing test.
This commit is contained in:
parent
e826accb9c
commit
a74a36df35
5
src/main/fragment/mos6502-common/0_eq_vdum1_then_la1.asm
Normal file
5
src/main/fragment/mos6502-common/0_eq_vdum1_then_la1.asm
Normal file
@ -0,0 +1,5 @@
|
||||
lda {m1}
|
||||
ora {m1}+1
|
||||
ora {m1}+2
|
||||
ora {m1}+3
|
||||
beq {la1}
|
@ -0,0 +1,5 @@
|
||||
lda {m1}
|
||||
ora {m1}+1
|
||||
ora {m1}+2
|
||||
ora {m1}+3
|
||||
bne {la1}
|
13
src/main/fragment/mos6502-common/vdsm1=vdsm2_plus_1.asm
Normal file
13
src/main/fragment/mos6502-common/vdsm1=vdsm2_plus_1.asm
Normal 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
|
10
src/main/fragment/mos6502-common/vdsm1=vdsm2_ror_16.asm
Normal file
10
src/main/fragment/mos6502-common/vdsm1=vdsm2_ror_16.asm
Normal 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
|
10
src/main/fragment/mos6502-common/vdsm1=vdsm2_ror_24.asm
Normal file
10
src/main/fragment/mos6502-common/vdsm1=vdsm2_ror_24.asm
Normal file
@ -0,0 +1,10 @@
|
||||
lda {m2}+3
|
||||
sta {m1}
|
||||
and #$80
|
||||
beq !+
|
||||
lda #$ff
|
||||
!:
|
||||
sta {m1}+1
|
||||
sta {m1}+2
|
||||
sta {m1}+3
|
||||
|
11
src/main/fragment/mos6502-common/vdsm1=vdsm2_ror_8.asm
Normal file
11
src/main/fragment/mos6502-common/vdsm1=vdsm2_ror_8.asm
Normal 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
|
12
src/main/fragment/mos6502-common/vdsm1_le_vdsm2_then_la1.asm
Normal file
12
src/main/fragment/mos6502-common/vdsm1_le_vdsm2_then_la1.asm
Normal 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}
|
||||
!:
|
7
src/main/fragment/mos6502-common/vdum1=vdum1_ror_16.asm
Normal file
7
src/main/fragment/mos6502-common/vdum1=vdum1_ror_16.asm
Normal file
@ -0,0 +1,7 @@
|
||||
lda {m1}+2
|
||||
sta {m1}
|
||||
lda {m1}+3
|
||||
sta {m1}+1
|
||||
lda #0
|
||||
sta {m1}+2
|
||||
sta {m1}+3
|
Loading…
x
Reference in New Issue
Block a user