commit 8a10d17

Devine Lu Linvega  ·  2024-11-12 23:17:49 +0000 UTC
parent 301de90
Mapped device page to bios ram
2 files changed,  +3, -1
+2, -0
 1@@ -16,6 +16,7 @@ WITH REGARD TO THIS SOFTWARE.
 2 */
 3 
 4 char *boot_rom;
 5+Uint8 bios_ram[0x10000];
 6 
 7 static void
 8 system_zero(int soft)
 9@@ -78,6 +79,7 @@ int
10 system_boot(Uint8 *ram, char *rom)
11 {
12 	uxn.ram = ram;
13+	uxn.dev = bios_ram + 0x8000;
14 	system_zero(0);
15 	if(!system_load(rom))
16 		if(!system_load("boot.rom"))
+1, -1
1@@ -30,7 +30,7 @@ typedef struct {
2 } Stack;
3 
4 typedef struct Uxn {
5-	Uint8 *ram, dev[0x100];
6+	Uint8 *ram, *dev;
7 	Stack wst, rst;
8 } Uxn;
9