All pastes #143421 Raw Edit

Miscellany

public text v1 · immutable
#143421 ·published 2006-08-22 01:24 UTC
rendered paste body
            // rompointer points in to GBA ROM space (contains data appended to my .nds)
            for(i = 0; i < 0x300; i++) {
                *((uint16*)(rompointer+i)) = 0x0000;
                // prints all zeroes
                iprintf("%u",*((uint16*)(rompointer+i)));
            }
            for(i = 0; i < 0x300; i++) {
                // prints original data that was at rompointer
                iprintf("%u",*((uint16*)(rompointer+i)));
            }