commit 64fed1c
Devine Lu Linvega
·
2024-11-12 23:44:45 +0000 UTC
parent 8a10d17
Map stacks in memory
2 files changed,
+3,
-1
+2,
-0
1@@ -80,6 +80,8 @@ system_boot(Uint8 *ram, char *rom)
2 {
3 uxn.ram = ram;
4 uxn.dev = bios_ram + 0x8000;
5+ uxn.wst.dat = bios_ram + 0x8100;
6+ uxn.rst.dat = bios_ram + 0x8200;
7 system_zero(0);
8 if(!system_load(rom))
9 if(!system_load("boot.rom"))
+1,
-1
1@@ -26,7 +26,7 @@ typedef signed short Sint16;
2 typedef unsigned int Uint32;
3
4 typedef struct {
5- Uint8 dat[0x100], ptr;
6+ Uint8 *dat, ptr;
7 } Stack;
8
9 typedef struct Uxn {