GBA Mode 7 demo written in assembly.
This demo uses the Game Boy Advance's actual Mode 7 (which is only capable of displaying a single color, the backdrop) to display a 15-bit color bitmap.
This is done by streaming the colors of a bitmap to palette entry 0. In this demo, DMA3 streams color information to palette RAM whereas DMA0 assists with synchronization.
Use FASMARM and assemble main.asm
in the source
folder; this should give you a working ROM.
Yes. Replace serena.img.bin
with a 15-bit color bitmap of your liking. If you want to use a different file name, edit main.asm
and replace file 'serena.img.bin'
with file 'your.bitmap'
.
No, it's not. Similar to "blast processing" on the Sega Genesis, this demo eats up most of the available CPU time (while the CPU doesn't do much work, it's still blocked due to continuous DMA during VDRAW).
This demo is released under the MIT license.