#178430 - imanironmaiden - Tue Jun 23, 2015 8:56 pm
I have been making my way through the tonc tutorial and have unsuccessfully been trying to get all the sprites to show up on the top left corner of the screen. Here is the code I wrote:
When I compile that and run it in vba/no$gba/gba4ios, nothing shows up. When I took a look at the oam in vba, all the objects were 8x8 red squares at coordinate (0,0), but the whole screen was black. Any help would be greatly appreciated. Thanks.
Code: |
int main() { // set the first palette element to red *(unsigned int*)0x05000200 = 0x1f; // mode 0, 1d drawing, objects enabled *(unsigned int*)0x04000000 = 0x1040; while(1); return 0; } |
When I compile that and run it in vba/no$gba/gba4ios, nothing shows up. When I took a look at the oam in vba, all the objects were 8x8 red squares at coordinate (0,0), but the whole screen was black. Any help would be greatly appreciated. Thanks.