commit 66f4577
Devine Lu Linvega
·
2025-10-08 03:33:12 +0000 UTC
parent 9483266
Quieted warnings in core
2 files changed,
+8,
-8
+4,
-4
1@@ -61,10 +61,10 @@ void emu_deo(const Uint8 port, const Uint8 value);
2 #define REM ptr[_r] -= 1 + _2;
3 #define DEC(m) stk[m][--ptr[m]]
4 #define INC(m) stk[m][ptr[m]++]
5-#define IMM(o) o = ram[pc++] << 8 | ram[pc++];
6-#define MOV(x) if(_2) pc = x; else pc += (signed char)x;
7+#define IMM(o) { o = ram[pc++] << 8, o |= ram[pc++]; }
8+#define MOV(x) { if(_2) pc = x; else pc += (signed char)x; }
9 #define PO1(o) o = DEC(_r);
10-#define PO2(o) o = DEC(_r) | DEC(_r) << 8;
11+#define PO2(o) { o = DEC(_r), o |= DEC(_r) << 8; }
12 #define POx(o) if(_2) PO2(o) else PO1(o)
13 #define GOT(o) if(_2) PO1(o[1]) PO1(o[0])
14 #define RP1(i) INC(!_r) = i;
15@@ -1254,7 +1254,7 @@ main(int argc, char **argv)
16 {
17 int i = 1;
18 if(argc == 2 && argv[1][0] == '-' && argv[1][1] == 'v')
19- return !fprintf(stdout, "Uxn11 - Varvara Emulator, 26 Sep 2025.\n");
20+ return !fprintf(stdout, "Uxn11 - Varvara Emulator, 7 Oct 2025.\n");
21 else if(argc == 1)
22 return !fprintf(stdout, "usage: %s [-v] file.rom [args..]\n", argv[0]);
23 else if(!system_boot(argv[i++], argc > 2))
+4,
-4
1@@ -46,10 +46,10 @@ void emu_deo(const Uint8 port, const Uint8 value);
2 #define REM ptr[_r] -= 1 + _2;
3 #define DEC(m) stk[m][--ptr[m]]
4 #define INC(m) stk[m][ptr[m]++]
5-#define IMM(o) o = ram[pc++] << 8 | ram[pc++];
6-#define MOV(x) if(_2) pc = x; else pc += (signed char)x;
7+#define IMM(o) { o = ram[pc++] << 8, o |= ram[pc++]; }
8+#define MOV(x) { if(_2) pc = x; else pc += (signed char)x; }
9 #define PO1(o) o = DEC(_r);
10-#define PO2(o) o = DEC(_r) | DEC(_r) << 8;
11+#define PO2(o) { o = DEC(_r), o |= DEC(_r) << 8; }
12 #define POx(o) if(_2) PO2(o) else PO1(o)
13 #define GOT(o) if(_2) PO1(o[1]) PO1(o[0])
14 #define RP1(i) INC(!_r) = i;
15@@ -689,7 +689,7 @@ main(int argc, char **argv)
16 {
17 int i = 1;
18 if(argc == 2 && argv[1][0] == '-' && argv[1][1] == 'v')
19- return !fprintf(stdout, "Uxn11 - Varvara Emulator(cli), 26 Sep 2025.\n");
20+ return !fprintf(stdout, "Uxn11 - Varvara Emulator(cli), 7 Oct 2025.\n");
21 else if(argc == 1)
22 return !fprintf(stdout, "usage: %s [-v] file.rom [args..]\n", argv[0]);
23 else if(!system_boot(argv[i++], argc > 2))