commit 23c0383
Devine Lu Linvega
·
2025-05-16 16:31:38 +0000 UTC
parent 5ea3a80
(uxncli) Cleanup
1 files changed,
+4,
-7
+4,
-7
1@@ -2,8 +2,6 @@
2 #include <stdlib.h>
3 #include <unistd.h>
4
5-#define RAM_PAGES 0x10
6-
7 /*
8 Copyright (c) 2021-2025 Devine Lu Linvega, Andrew Alderwick,
9 Andrew Richards, Eiríkr Åsheim, Sigrid Solveig Haflínudóttir
10@@ -29,13 +27,14 @@ typedef struct {
11 Uint8 dat[0x100], ptr;
12 } Stack;
13
14-Uint8 emu_dei(Uint8 addr);
15-void emu_deo(Uint8 addr, Uint8 value);
16 static Uint8 *ram, dev[0x100];
17 static Stack wst, rst;
18+Uint8 emu_dei(Uint8 addr);
19+void emu_deo(Uint8 addr, Uint8 value);
20
21 /* clang-format off */
22
23+#define RAM_PAGES 0x10
24 #define PEEK2(d) (*(d) << 8 | (d)[1])
25 #define POKE2(d, v) { *(d) = (v) >> 8; (d)[1] = (v); }
26
27@@ -158,9 +157,7 @@ system_boot(char *rom_path, int has_args)
28 ram = (Uint8 *)calloc(0x10000 * RAM_PAGES, sizeof(Uint8));
29 system_boot_path = rom_path;
30 dev[0x17] = has_args;
31- if(system_load(rom_path))
32- return 1;
33- return 0;
34+ return system_load(rom_path);
35 }
36
37 static void