sm_effect_2.asm
defame-demogroup_c64_sa2019invite/rsrc/sm_effect_2.asm
.pc = $1000 "SM EFFECT DEFINITION"
SM_OFFSETS: //x offset of each statemachine (sets initial start location and then updated per frame)
.byte $12,$13,$14,$15,$16,$17
.byte $12,$13,$14,$15,$16,$17
.byte $12,$13,$14,$15,$16,$17
.byte $12,$13,$14,$15,$16,$17
.byte $12,$13,$14,$15,$16,$17
.byte $12,$13,$14,$15,$16,$17
.byte $12,$13,$14,$15,$16,$17
.byte $12,$13,$14,$15,$16,$17
.byte $12,$13,$14,$15,$16,$17
.byte $12,$13,$14,$15,$16,$17
.byte $12,$13,$14,$15,$16,$17
.byte $12,$13,$14,$15,$16,$17
.byte $12,$13,$14,$15,$16,$17
.byte $12,$13,$14,$15,$16,$17
.byte $12,$13,$14,$15,$16,$17
.byte $12,$13,$14,$15,$16,$17
.byte $12,$13,$14,$15,$16,$17
.byte $12,$13,$14,$15,$16,$17
.byte $12,$13,$14,$15,$16,$17
.byte $12,$13,$14,$15,$16,$17
.byte $12,$13,$14,$15,$16,$17
.byte $12,$13,$14,$15,$16,$17
.byte $12,$13,$14,$15,$16,$17
.byte $12,$13,$14,$15,$16,$17
.byte $12,$13,$14,$15,$16,$17

.align $100
SM_STEPS: //number of steps the sm should do before it dies
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06
.byte $07,$07,$07,$07,$06,$06

.align $100
SM_DELTAS: //distance deltas of each state machine - high bit is subtraction
.byte $83,$83,$83,$03,$03,$03
.byte $83,$83,$83,$03,$03,$03
.byte $83,$83,$83,$03,$03,$03
.byte $83,$83,$83,$03,$03,$03
.byte $83,$83,$83,$03,$03,$03
.byte $83,$83,$83,$03,$03,$03
.byte $83,$83,$83,$03,$03,$03
.byte $83,$83,$83,$03,$03,$03
.byte $83,$83,$83,$03,$03,$03
.byte $83,$83,$83,$03,$03,$03
.byte $83,$83,$83,$03,$03,$03
.byte $83,$83,$83,$03,$03,$03
.byte $83,$83,$83,$03,$03,$03
.byte $83,$83,$83,$03,$03,$03
.byte $83,$83,$83,$03,$03,$03
.byte $83,$83,$83,$03,$03,$03
.byte $83,$83,$83,$03,$03,$03
.byte $83,$83,$83,$03,$03,$03
.byte $83,$83,$83,$03,$03,$03
.byte $83,$83,$83,$03,$03,$03
.byte $83,$83,$83,$03,$03,$03
.byte $83,$83,$83,$03,$03,$03
.byte $83,$83,$83,$03,$03,$03
.byte $83,$83,$83,$03,$03,$03
.byte $83,$83,$83,$03,$03,$03

.align $100
SM_DELAYS: //initial frame delays for each state machine
.byte $e5,$e3,$e1,$e1,$e3,$e5
.byte $d5,$d3,$d1,$d1,$d3,$d5
.byte $c5,$c3,$c1,$c1,$c3,$c5
.byte $b5,$b3,$b1,$b1,$b3,$b5
.byte $a5,$a3,$a1,$a1,$a3,$a5
.byte $95,$93,$91,$91,$93,$95
.byte $85,$83,$81,$81,$83,$85
.byte $75,$73,$71,$71,$73,$75
.byte $65,$63,$61,$61,$63,$65
.byte $55,$53,$51,$51,$53,$55
.byte $05,$03,$01,$01,$03,$05
.byte $05,$03,$01,$01,$03,$05
.byte $05,$03,$01,$01,$03,$05
.byte $05,$03,$01,$01,$03,$05
.byte $55,$53,$51,$51,$53,$55
.byte $65,$63,$61,$61,$63,$65
.byte $75,$73,$71,$71,$73,$75
.byte $85,$83,$81,$81,$83,$85
.byte $95,$93,$91,$91,$93,$95
.byte $a5,$a3,$a1,$a1,$a3,$a5
.byte $b5,$b3,$b1,$b1,$b3,$b5
.byte $c5,$c3,$c1,$c1,$c3,$c5
.byte $d5,$d3,$d1,$d1,$d3,$d5
.byte $e5,$e3,$e1,$e1,$e3,$e5
.byte $f5,$f3,$f1,$f1,$f3,$f5


