Right, I've got a small problem. I'm trying to make jman's Sonic 1 sound driver to load without kosinski compression. This works if I manually copy every byte into Z80 RAM, like this:
But this is horribly ugly, it takes a shitload of ROM space, and it's not very extensible. Unfortunately, I seem to not get along with address registers and the like, so could someone help me get this in a proper loop plz?
EDIT: Oh, and the size of the driver can be obtained by doing (Kos_Z80_End-Kos_Z80).
move.b (Kos_Z80+$000),($A00000+$000).l move.b (Kos_Z80+$001),($A00000+$001).l move.b (Kos_Z80+$002),($A00000+$002).l move.b (Kos_Z80+$003),($A00000+$003).l move.b (Kos_Z80+$004),($A00000+$004).l move.b (Kos_Z80+$005),($A00000+$005).l move.b (Kos_Z80+$006),($A00000+$006).l move.b (Kos_Z80+$007),($A00000+$007).l move.b (Kos_Z80+$008),($A00000+$008).l move.b (Kos_Z80+$009),($A00000+$009).l ...
But this is horribly ugly, it takes a shitload of ROM space, and it's not very extensible. Unfortunately, I seem to not get along with address registers and the like, so could someone help me get this in a proper loop plz?
EDIT: Oh, and the size of the driver can be obtained by doing (Kos_Z80_End-Kos_Z80).
This post has been edited by Puto: 10 June 2007 - 06:07 AM

