#148296 - nipil - Fri Jan 04, 2008 1:56 pm
I'm back with something strange. Here's the actual code sample :
As you can see, the code is a *very* simple modification to the arm9 template: Basically, filling an 8x8 tile with "6" and double checking if it's correctly written.
Output from no$gba :
[Images not permitted - Click here to view it]
Output from other emulators :
[Images not permitted - Click here to view it]
Questions are :
- has this anything to do some "volatile" memory ?
- relating to the point above :
* is it a normal behaviour correctly implemented in no$gba (and as such something wrongly done on others)
* OR is it a bug in no$gba (which i should maybe report) ?
- If i'm doing it wrong, how should i do it ?
I'm asking this here, because i don't like having different results for something so simple (code-wise).
Code: |
#include <nds.h>
#include <stdio.h> int main(void) { u8 a,i; videoSetMode(0); videoSetModeSub(MODE_0_2D | DISPLAY_BG0_ACTIVE); vramSetBankC(VRAM_C_SUB_BG); SUB_BG0_CR = BG_MAP_BASE(31); BG_PALETTE_SUB[255] = RGB15(31,31,31); consoleInitDefault((u16*)SCREEN_BASE_BLOCK_SUB(31), (u16*)CHAR_BASE_BLOCK_SUB(0), 16); u8 * tileMemory = (u8*)BG_TILE_RAM(1); for (i = 0; i < 64; i++) { tileMemory[i] = 6; printf("%i ",tileMemory[i]); } for (a = 0; a < 64; a++) { printf("%i ", tileMemory[a]); } return 0; } |
Output from no$gba :
[Images not permitted - Click here to view it]
Output from other emulators :
[Images not permitted - Click here to view it]
Questions are :
- has this anything to do some "volatile" memory ?
- relating to the point above :
* is it a normal behaviour correctly implemented in no$gba (and as such something wrongly done on others)
* OR is it a bug in no$gba (which i should maybe report) ?
- If i'm doing it wrong, how should i do it ?
I'm asking this here, because i don't like having different results for something so simple (code-wise).