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

Added fragments from @Majikeyric

This commit is contained in:
jespergravgaard 2021-10-13 22:20:34 +02:00
parent a391f9cd76
commit a69fb9c419
14 changed files with 61 additions and 8 deletions

View File

@ -1,6 +1,7 @@
<component name="ProjectDictionaryState">
<dictionary name="jespergravgaard">
<words>
<w>kickasm</w>
<w>unversioned</w>
<w>xplus</w>
</words>

View File

@ -1,4 +1,4 @@
//KICKC FRAGMENT CACHE e7a682bbf e7a684e4f
//KICKC FRAGMENT CACHE f5ed49330 f5ed4b75f
//FRAGMENT vbuzz=vbuc1
ldz #{c1}
//FRAGMENT vbuzz_lt_vbuc1_then_la1

View File

@ -1,4 +1,4 @@
//KICKC FRAGMENT CACHE e7a682bbf e7a684e4f
//KICKC FRAGMENT CACHE f5ed49330 f5ed4b75f
//FRAGMENT _deref_pbuc1=vbuc2
ldz #{c2}
stz {c1}

View File

@ -1,4 +1,4 @@
//KICKC FRAGMENT CACHE e7a682bbf e7a684e4f
//KICKC FRAGMENT CACHE f5ed49330 f5ed4b75f
//FRAGMENT vbuz1=vbuc1
lda #{c1}
sta {z1}

View File

@ -1,4 +1,4 @@
//KICKC FRAGMENT CACHE e7a682bbf e7a684e4f
//KICKC FRAGMENT CACHE f5ed49330 f5ed4b75f
//FRAGMENT vbuz1=vbuc1
lda #{c1}
sta {z1}

View File

@ -1,4 +1,4 @@
//KICKC FRAGMENT CACHE e7a682bbf e7a684e4f
//KICKC FRAGMENT CACHE f5ed49330 f5ed4b75f
//FRAGMENT _deref_pbuc1=_inc__deref_pbuc1
inc {c1}
//FRAGMENT isr_hardware_all_entry

View File

@ -1,4 +1,4 @@
//KICKC FRAGMENT CACHE e7a682bbf e7a684e4f
//KICKC FRAGMENT CACHE f5ed49330 f5ed4b75f
//FRAGMENT vbuz1=_deref_pbuc1
lda {c1}
sta {z1}

View File

@ -1,6 +1,6 @@
clc
adc m2}
adc {m2}
sta {m1}
lda #0
adc {m2}+1
sta {m1}+1
sta {m1}+1

View File

@ -0,0 +1,4 @@
eor {m1}
beq !+
lda #1
!:

View File

@ -0,0 +1,9 @@
lda {m1}
sta $fe
lda {m1}+1
sta $ff
lda ($fe),y
sta {m1}
iny
lda ($fe),y
sta {m1}+1

View File

@ -0,0 +1,8 @@
clc
lda {m1}
adc ({z2}),y
sta {m1}
lda {m1}+1
iny
adc ({z2}),y
sta {m1}+1

View File

@ -0,0 +1,8 @@
clc
lda {m2}
adc ({z3}),y
sta {m1}
iny
lda {m2}+1
adc ({z3}),y
sta {m1}+1

View File

@ -0,0 +1,10 @@
clc
lda ({z1}),y
adc {m2}
pha
iny
lda ({z1}),y
adc {m2}
sta {z1}+1
pla
sta {z1}

View File

@ -0,0 +1,13 @@
iny
lda ({z1}),y
pha
dey
clc
lda ({z1}),y
ldy #{c1}
adc ({z2}),y
sta {z1}
pla
iny
adc ({z2}),y
sta {z1}+1