HiSprite/spritegen0.s
2017-03-26 11:02:22 -07:00

1211 lines
13 KiB
ArmAsm

; This file was generated by HiSprite.py, a sprite compiler by Quinn Dunki.
; If you feel the need to modify this file, you are probably doing it wrong.
BOXW_MAG: ;6 bytes per row
SAVE_AXY
ldy PARAM0
ldx MOD7_2,y
jmp (BOXW_MAG_JMP,x)
BOXW_MAG_JMP:
.addr BOXW_MAG_SHIFT0
.addr BOXW_MAG_SHIFT1
.addr BOXW_MAG_SHIFT2
.addr BOXW_MAG_SHIFT3
.addr BOXW_MAG_SHIFT4
.addr BOXW_MAG_SHIFT5
.addr BOXW_MAG_SHIFT6
BOXW_MAG_SHIFT0:
ldx PARAM1
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
lda #%01010101
sta (SCRATCH0),y
iny
lda #%00101010
sta (SCRATCH0),y
iny
lda #%00000001
sta (SCRATCH0),y
iny
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
lda #%00000001
sta (SCRATCH0),y
iny
iny
lda #%00000001
sta (SCRATCH0),y
iny
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
lda #%01010001
sta (SCRATCH0),y
iny
lda #%00001010
sta (SCRATCH0),y
iny
lda #%00000001
sta (SCRATCH0),y
iny
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
lda #%00010001
sta (SCRATCH0),y
iny
lda #%00001000
sta (SCRATCH0),y
iny
lda #%00000001
sta (SCRATCH0),y
iny
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
lda #%00010001
sta (SCRATCH0),y
iny
lda #%00001000
sta (SCRATCH0),y
iny
lda #%00000001
sta (SCRATCH0),y
iny
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
lda #%01010001
sta (SCRATCH0),y
iny
lda #%00001010
sta (SCRATCH0),y
iny
lda #%00000001
sta (SCRATCH0),y
iny
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
lda #%00000001
sta (SCRATCH0),y
iny
iny
lda #%00000001
sta (SCRATCH0),y
iny
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
lda #%01010101
sta (SCRATCH0),y
iny
lda #%00101010
sta (SCRATCH0),y
iny
lda #%00000001
sta (SCRATCH0),y
iny
iny
iny
RESTORE_AXY
rts
BOXW_MAG_SHIFT1:
ldx PARAM1
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
lda #%01010100
sta (SCRATCH0),y
iny
lda #%00101010
sta (SCRATCH0),y
iny
lda #%00000101
sta (SCRATCH0),y
iny
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
lda #%00000100
sta (SCRATCH0),y
iny
iny
lda #%00000100
sta (SCRATCH0),y
iny
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
lda #%01000100
sta (SCRATCH0),y
iny
lda #%00101010
sta (SCRATCH0),y
iny
lda #%00000100
sta (SCRATCH0),y
iny
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
lda #%01000100
sta (SCRATCH0),y
iny
lda #%00100000
sta (SCRATCH0),y
iny
lda #%00000100
sta (SCRATCH0),y
iny
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
lda #%01000100
sta (SCRATCH0),y
iny
lda #%00100000
sta (SCRATCH0),y
iny
lda #%00000100
sta (SCRATCH0),y
iny
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
lda #%01000100
sta (SCRATCH0),y
iny
lda #%00101010
sta (SCRATCH0),y
iny
lda #%00000100
sta (SCRATCH0),y
iny
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
lda #%00000100
sta (SCRATCH0),y
iny
iny
lda #%00000100
sta (SCRATCH0),y
iny
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
lda #%01010100
sta (SCRATCH0),y
iny
lda #%00101010
sta (SCRATCH0),y
iny
lda #%00000101
sta (SCRATCH0),y
iny
iny
iny
RESTORE_AXY
rts
BOXW_MAG_SHIFT2:
ldx PARAM1
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
lda #%01010000
sta (SCRATCH0),y
iny
lda #%00101010
sta (SCRATCH0),y
iny
lda #%00010101
sta (SCRATCH0),y
iny
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
lda #%00010000
sta (SCRATCH0),y
iny
iny
lda #%00010000
sta (SCRATCH0),y
iny
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
lda #%00010000
sta (SCRATCH0),y
iny
lda #%00101010
sta (SCRATCH0),y
iny
lda #%00010001
sta (SCRATCH0),y
iny
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
lda #%00010000
sta (SCRATCH0),y
iny
lda #%00000010
sta (SCRATCH0),y
iny
lda #%00010001
sta (SCRATCH0),y
iny
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
lda #%00010000
sta (SCRATCH0),y
iny
lda #%00000010
sta (SCRATCH0),y
iny
lda #%00010001
sta (SCRATCH0),y
iny
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
lda #%00010000
sta (SCRATCH0),y
iny
lda #%00101010
sta (SCRATCH0),y
iny
lda #%00010001
sta (SCRATCH0),y
iny
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
lda #%00010000
sta (SCRATCH0),y
iny
iny
lda #%00010000
sta (SCRATCH0),y
iny
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
lda #%01010000
sta (SCRATCH0),y
iny
lda #%00101010
sta (SCRATCH0),y
iny
lda #%00010101
sta (SCRATCH0),y
iny
iny
iny
RESTORE_AXY
rts
BOXW_MAG_SHIFT3:
ldx PARAM1
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
lda #%01000000
sta (SCRATCH0),y
iny
lda #%00101010
sta (SCRATCH0),y
iny
lda #%01010101
sta (SCRATCH0),y
iny
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
lda #%01000000
sta (SCRATCH0),y
iny
iny
lda #%01000000
sta (SCRATCH0),y
iny
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
lda #%01000000
sta (SCRATCH0),y
iny
lda #%00101000
sta (SCRATCH0),y
iny
lda #%01000101
sta (SCRATCH0),y
iny
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
lda #%01000000
sta (SCRATCH0),y
iny
lda #%00001000
sta (SCRATCH0),y
iny
lda #%01000100
sta (SCRATCH0),y
iny
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
lda #%01000000
sta (SCRATCH0),y
iny
lda #%00001000
sta (SCRATCH0),y
iny
lda #%01000100
sta (SCRATCH0),y
iny
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
lda #%01000000
sta (SCRATCH0),y
iny
lda #%00101000
sta (SCRATCH0),y
iny
lda #%01000101
sta (SCRATCH0),y
iny
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
lda #%01000000
sta (SCRATCH0),y
iny
iny
lda #%01000000
sta (SCRATCH0),y
iny
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
lda #%01000000
sta (SCRATCH0),y
iny
lda #%00101010
sta (SCRATCH0),y
iny
lda #%01010101
sta (SCRATCH0),y
iny
iny
iny
RESTORE_AXY
rts
BOXW_MAG_SHIFT4:
ldx PARAM1
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
iny
lda #%00101010
sta (SCRATCH0),y
iny
lda #%01010101
sta (SCRATCH0),y
iny
lda #%00000010
sta (SCRATCH0),y
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
iny
lda #%00000010
sta (SCRATCH0),y
iny
iny
lda #%00000010
sta (SCRATCH0),y
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
iny
lda #%00100010
sta (SCRATCH0),y
iny
lda #%00010101
sta (SCRATCH0),y
iny
lda #%00000010
sta (SCRATCH0),y
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
iny
lda #%00100010
sta (SCRATCH0),y
iny
lda #%00010000
sta (SCRATCH0),y
iny
lda #%00000010
sta (SCRATCH0),y
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
iny
lda #%00100010
sta (SCRATCH0),y
iny
lda #%00010000
sta (SCRATCH0),y
iny
lda #%00000010
sta (SCRATCH0),y
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
iny
lda #%00100010
sta (SCRATCH0),y
iny
lda #%00010101
sta (SCRATCH0),y
iny
lda #%00000010
sta (SCRATCH0),y
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
iny
lda #%00000010
sta (SCRATCH0),y
iny
iny
lda #%00000010
sta (SCRATCH0),y
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
iny
lda #%00101010
sta (SCRATCH0),y
iny
lda #%01010101
sta (SCRATCH0),y
iny
lda #%00000010
sta (SCRATCH0),y
iny
iny
RESTORE_AXY
rts
BOXW_MAG_SHIFT5:
ldx PARAM1
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
iny
lda #%00101000
sta (SCRATCH0),y
iny
lda #%01010101
sta (SCRATCH0),y
iny
lda #%00001010
sta (SCRATCH0),y
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
iny
lda #%00001000
sta (SCRATCH0),y
iny
iny
lda #%00001000
sta (SCRATCH0),y
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
iny
lda #%00001000
sta (SCRATCH0),y
iny
lda #%01010101
sta (SCRATCH0),y
iny
lda #%00001000
sta (SCRATCH0),y
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
iny
lda #%00001000
sta (SCRATCH0),y
iny
lda #%01000001
sta (SCRATCH0),y
iny
lda #%00001000
sta (SCRATCH0),y
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
iny
lda #%00001000
sta (SCRATCH0),y
iny
lda #%01000001
sta (SCRATCH0),y
iny
lda #%00001000
sta (SCRATCH0),y
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
iny
lda #%00001000
sta (SCRATCH0),y
iny
lda #%01010101
sta (SCRATCH0),y
iny
lda #%00001000
sta (SCRATCH0),y
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
iny
lda #%00001000
sta (SCRATCH0),y
iny
iny
lda #%00001000
sta (SCRATCH0),y
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
iny
lda #%00101000
sta (SCRATCH0),y
iny
lda #%01010101
sta (SCRATCH0),y
iny
lda #%00001010
sta (SCRATCH0),y
iny
iny
RESTORE_AXY
rts
BOXW_MAG_SHIFT6:
ldx PARAM1
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
iny
lda #%00100000
sta (SCRATCH0),y
iny
lda #%01010101
sta (SCRATCH0),y
iny
lda #%00101010
sta (SCRATCH0),y
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
iny
lda #%00100000
sta (SCRATCH0),y
iny
iny
lda #%00100000
sta (SCRATCH0),y
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
iny
lda #%00100000
sta (SCRATCH0),y
iny
lda #%01010100
sta (SCRATCH0),y
iny
lda #%00100010
sta (SCRATCH0),y
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
iny
lda #%00100000
sta (SCRATCH0),y
iny
lda #%00000100
sta (SCRATCH0),y
iny
lda #%00100010
sta (SCRATCH0),y
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
iny
lda #%00100000
sta (SCRATCH0),y
iny
lda #%00000100
sta (SCRATCH0),y
iny
lda #%00100010
sta (SCRATCH0),y
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
iny
lda #%00100000
sta (SCRATCH0),y
iny
lda #%01010100
sta (SCRATCH0),y
iny
lda #%00100010
sta (SCRATCH0),y
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
iny
lda #%00100000
sta (SCRATCH0),y
iny
iny
lda #%00100000
sta (SCRATCH0),y
iny
iny
inx
lda HGRROWS_H1,x
sta SCRATCH1
lda HGRROWS_L,x
sta SCRATCH0
ldy PARAM0
lda DIV7_2,y
tay
iny
lda #%00100000
sta (SCRATCH0),y
iny
lda #%01010101
sta (SCRATCH0),y
iny
lda #%00101010
sta (SCRATCH0),y
iny
iny
RESTORE_AXY
rts