1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-11-03 12:07:26 +00:00

Added some signed word fragments

This commit is contained in:
jespergravgaard 2019-08-18 13:51:49 +02:00
parent f51cef9c34
commit ea70f7a6f4
6 changed files with 63 additions and 20 deletions

View File

@ -0,0 +1,8 @@
lda {z2}
asl
sta {z1}
lda {z2}+1
rol
sta {z1}+1
asl {z1}
rol {z1}+1

View File

@ -0,0 +1,12 @@
lda {z2}
asl
sta {z1}
lda {z2}+1
rol
sta {z1}+1
asl {z1}
rol {z1}+1
asl {z1}
rol {z1}+1
asl {z1}
rol {z1}+1

View File

@ -0,0 +1,14 @@
lda {z2}
asl
sta {z1}
lda {z2}+1
rol
sta {z1}+1
asl {z1}
rol {z1}+1
asl {z1}
rol {z1}+1
asl {z1}
rol {z1}+1
asl {z1}
rol {z1}+1

View File

@ -1,22 +1,3 @@
// ROL twice instead of RORing 6 times
lda {z1}
sta $ff
lda {z1}+1
sta {z1}
lda #0
bit {z1}+1
bpl !+
lda #$ff
!:
sta {z1}+1
rol $ff
rol {z1}
rol {z1}+1
rol $ff
rol {z1}
rol {z1}+1 // 64
lda {z2} lda {z2}
asl asl
sta {z1} sta {z1}
@ -32,4 +13,4 @@ rol {z1}+1
asl {z1} asl {z1}
rol {z1}+1 rol {z1}+1
asl {z1} asl {z1}
rol {z1}+1 // 66 rol {z1}+1

View File

@ -0,0 +1,18 @@
lda {z2}
asl
sta {z1}
lda {z2}+1
rol
sta {z1}+1
asl {z1}
rol {z1}+1
asl {z1}
rol {z1}+1
asl {z1}
rol {z1}+1
asl {z1}
rol {z1}+1
asl {z1}
rol {z1}+1
asl {z1}
rol {z1}+1

View File

@ -0,0 +1,10 @@
lda {z1}
cmp #<{c1}
lda {z1}+1
sbc #>{c1}
bvc !+
eor #$80
!:
beq !e+
bpl {la1}
!e: