#163107 - ritz - Mon Sep 22, 2008 5:38 pm
Not sure if this is a valid place for this question... please move or delete if not applicable.
Is RAM_COUNT (GFX_POLYGON_RAM_USAGE, GFX_VERTEX_RAM_USAGE) supported in no$gba? I can't seem to find an answer to this anywhere. I use these values in a few places and they work as expected on the hardware. However, they're always 0 in this emulator.
I noticed that iDeaS now emulates VERTEX_RAM, but I just can't seem to get my rom to work on this emu at all (I could be doing something stupid though).
#163108 - Lino - Mon Sep 22, 2008 6:32 pm
Can you send me your roms? with source?
#163115 - ritz - Mon Sep 22, 2008 9:39 pm
You can find the rom inside the .zip file on www.daftcode.net
I should note that I use v2 of Noda's EFS lib too (the Nitro FS stuff). I'm thinking the emu is fine, but somehow I might be messing up somewhere with DLDIing and the R4 option of the emu.
#163130 - ritz - Tue Sep 23, 2008 2:19 pm
I found out what was preventing it from running on iDeaS. I use the other cache algo in my rom. I took the following out and it now loads:
Code: |
#ifdef C_CACHERR
__asm("mrc p15, 0, r7, c1, c0, 0");
__asm("mov r6, #0x4000");
__asm("orr r8, r7, r6");
__asm("mcr p15, 0, r8, c1, c0, 0");
#endif
|
#163133 - Lino - Tue Sep 23, 2008 4:15 pm
but this code disable ITCM and DTCM.
#163138 - ritz - Tue Sep 23, 2008 7:37 pm
Geez, I hope not! I could be messing something up (I'm not great at asm), but from my testing the flag gets changed to the round-robin cache algo only. A lot of my functions are currently sitting in ITCM so if I was disabling L2 wouldn't that cause nothing but problems/errors for me?
#163140 - Lino - Tue Sep 23, 2008 7:53 pm
Excume in my emu that code disabled ITCM and DTCM on real DS you enable/disable the chache managment algorithm.
#163178 - M3d10n - Wed Sep 24, 2008 4:04 pm
ritz wrote: |
I should note that I use v2 of Noda's EFS lib too (the Nitro FS stuff). I'm thinking the emu is fine, but somehow I might be messing up somewhere with DLDIing and the R4 option of the emu. |
That's the problem. Try loading the .ds.gba in iDeaS, that way EFS will use GBA ROM access mode. I could never get EFS DLDI mode to work in iDeaS.
#163182 - ritz - Wed Sep 24, 2008 7:48 pm
iDeaS loads it fine with EFS/DLDI. It just wasn't working initially because of a change to the CP15 coprocessor.