commit 1c909e5

Devine Lu Linvega  ·  2025-05-17 23:37:49 +0000 UTC
parent 1677fca
emu_dei returns char
2 files changed,  +4, -4
+2, -2
 1@@ -35,7 +35,7 @@ static Window window;
 2 static Uint8 *ram, dev[0x100];
 3 static Stack wst, rst;
 4 
 5-unsigned int emu_dei(Uint8 addr);
 6+unsigned char emu_dei(Uint8 addr);
 7 void emu_deo(Uint8 addr, Uint8 value);
 8 
 9 /* clang-format off */
10@@ -909,7 +909,7 @@ static unsigned int rL1, rL2;
11 
12 #define CONINBUFSIZE 256
13 
14-unsigned int
15+unsigned char
16 emu_dei(Uint8 addr)
17 {
18 	switch(addr) {
+2, -2
 1@@ -26,7 +26,7 @@ typedef struct {
 2 static Uint8 *ram, dev[0x100];
 3 static Stack wst, rst;
 4 
 5-unsigned int emu_dei(Uint8 port);
 6+unsigned char emu_dei(Uint8 port);
 7 void emu_deo(Uint8 port, Uint8 value);
 8 
 9 /* clang-format off */
10@@ -618,7 +618,7 @@ static unsigned int rL1, rL2;
11 /*
12 @|Core -------------------------------------------------------------- */
13 
14-unsigned int
15+unsigned char
16 emu_dei(Uint8 port)
17 {
18 	switch(port) {