sprite DMA works
[mdlife] / src / sprite.S
index 42e4efd..158aaac 100644 (file)
@@ -8,11 +8,14 @@
 
        .globl spr_submit
 spr_submit:
-       move.l spr_count, -(%sp)
-       move.l #spr_shadow, -(%sp)
-       move.l #0x8000, -(%sp)
+       move.l spr_count, %d0
+       lsl.l #2, %d0                   | 4 words per sprite
+       move.l %d0, -(%sp)
+       pea spr_shadow
+       pea 0xe000.w                    | we placed the spirte table at e000
        jsr dma_systovram
-       add.l #12, %sp
+       addq.l #8, %sp
+       addq.l #4, %sp
        rts
 
 | vi:ft=gas68k: