copymem((void*)CharSeg3+(254*16), (void*)ASCII_CH2, 258 << 4);
WA[31].head = WRLD_ON;
WA[31].w = 384;
WA[31].h = 224;
WA[30].head = WRLD_END;
VIP_REGS[BRTA] = 32;
VIP_REGS[BRTB] = 64;
VIP_REGS[BRTC] = 32;
int dummy = 0;
while(1) {
callNested1(&dummy);
callRecursive(2);
}
}
As soon as I put in the call to callNested4 from callNested3 the screen just stays black on the VB.
The recursive call crashes the program too but only in the VB.
I'm compiling with GCCVB 4, does anyone else experience the same problem?
BTW: I've tried a barebones test program with only libgccvb and the problem does not arises, neither by calling callNested1 nor callRecursive so I suspect that it has to do with the size of my engine, but it buffles me that in the emulator the code works.
Is there any way to know how the stack and the .bss sections are related? I have some big structs in the .bss.
Jorgeche