gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

ASM > Translating Cearn's dma demo to asm

#167110 - headspin - Sun Mar 01, 2009 9:40 pm

I have translated Cearn's dma demo to arm asm (for the challenge). But have hit a snag. It runs fine in No$ but on hardware there are two black stripes. I have spent alot of time going over the code but can't for the life of me figure out what is going wrong. It could be a signing problem perhaps but it is definately some issue in the code creating the window table. I'm really at a hazard to guess its to do with the inRange or clamp functions.

I would normally post code but I think it may be easier to understand with the full source. The project is available for download at the following link and should compile with the latest devkitARM.

Download Asm FX Demo Source
_________________
Warhawk DS | Manic Miner: The Lost Levels | The Detective Game

#167111 - elhobbs - Sun Mar 01, 2009 10:06 pm

didn't look at the asm source, but black stripes and dma usually point to not flushing the cache before dma. as dma does not access the cache.

#167114 - headspin - Sun Mar 01, 2009 11:30 pm

Thanks elhobbs you were right I needed to flush the cache.
_________________
Warhawk DS | Manic Miner: The Lost Levels | The Detective Game