mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-11-23 08:32:39 +00:00
Added some word fragments
This commit is contained in:
parent
e968cb6de7
commit
ca8d68891c
6
src/main/fragment/vwsz1=vwsz2_plus_vbuaa.asm
Normal file
6
src/main/fragment/vwsz1=vwsz2_plus_vbuaa.asm
Normal file
@ -0,0 +1,6 @@
|
||||
clc
|
||||
adc {z1}
|
||||
sta {z1}
|
||||
lda {z1}+1
|
||||
adc #0
|
||||
sta {z1}+1
|
@ -0,0 +1,7 @@
|
||||
sec
|
||||
lda {c1},x
|
||||
sbc {z2}
|
||||
sta {z1}
|
||||
lda {c1}+1,x
|
||||
sbc {z2}+1
|
||||
sta {z1}+1
|
@ -0,0 +1,7 @@
|
||||
sec
|
||||
lda {c1},y
|
||||
sbc {z2}
|
||||
sta {z1}
|
||||
lda {c1}+1,y
|
||||
sbc {z2}+1
|
||||
sta {z1}+1
|
7
src/main/fragment/vwuz1=vwuc1_minus_vwuz2.asm
Normal file
7
src/main/fragment/vwuz1=vwuc1_minus_vwuz2.asm
Normal file
@ -0,0 +1,7 @@
|
||||
sec
|
||||
lda #<{c1}
|
||||
sbc {z2}
|
||||
sta {z1}
|
||||
lda #>{c1}
|
||||
sbc {z2}+1
|
||||
sta {z1}+1
|
@ -0,0 +1,6 @@
|
||||
lda {z1}+1
|
||||
cmp {c1}+1,x
|
||||
bne {la1}
|
||||
lda {z1}
|
||||
cmp {c1},x
|
||||
bne {la1}
|
@ -0,0 +1,6 @@
|
||||
lda {z1}+1
|
||||
cmp {c1}+1,y
|
||||
bne {la1}
|
||||
lda {z1}
|
||||
cmp {c1},y
|
||||
bne {la1}
|
@ -59,7 +59,7 @@ lines: // Draw a number of lines th make up a letter
|
||||
jsr line
|
||||
jmp lines
|
||||
|
||||
line: // Draw a single line
|
||||
line: // Draw a single line using uint[5.3] fixed point additions to xpos & ypos
|
||||
lda line_xpos
|
||||
lsr
|
||||
lsr
|
||||
|
Loading…
Reference in New Issue
Block a user