commit 0c6dec9

Devine Lu Linvega  ·  2022-06-14 17:52:18 +0000 UTC
parent 5d83731
Device ids error report should be in 16th
4 files changed,  +7, -4
+2, -1
 1@@ -53,7 +53,8 @@ screen_blit(UxnScreen *p, Layer *layer, Uint16 x, Uint16 y, Uint8 *sprite, Uint8
 2 	}
 3 }
 4 
 5-static void layer_clear(UxnScreen *p, Layer *layer)
 6+static void
 7+layer_clear(UxnScreen *p, Layer *layer)
 8 {
 9 	Uint32 i, size = p->width * p->height;
10 	for(i = 0; i < size; i++)
+3, -1
 1@@ -63,6 +63,8 @@ system_deo(Uxn *u, Uint8 *d, Uint8 port)
 2 	switch(port) {
 3 	case 0x2: u->wst = (Stack *)(u->ram + (d[port] ? (d[port] * 0x100) : 0x10000)); break;
 4 	case 0x3: u->rst = (Stack *)(u->ram + (d[port] ? (d[port] * 0x100) : 0x10100)); break;
 5-	case 0xe: if(u->wst->ptr || u->rst->ptr) system_inspect(u); break;
 6+	case 0xe:
 7+		if(u->wst->ptr || u->rst->ptr) system_inspect(u);
 8+		break;
 9 	}
10 }
+1, -1
1@@ -94,7 +94,7 @@ emu_deo(Uxn *u, Uint8 addr, Uint8 v)
2 	case 0xb0: file_deo(1, u->ram, &u->dev[d], p); break;
3 	}
4 	if(p == 0x01 && !(SUPPORT & mask))
5-		fprintf(stderr, "Warning: Incompatible emulation, device: %02x.\n", d >> 4);
6+		fprintf(stderr, "Warning: Incompatible emulation, device: %02x.\n", d);
7 }
8 
9 static void
+1, -1
1@@ -70,7 +70,7 @@ emu_deo(Uxn *u, Uint8 addr, Uint8 v)
2 	case 0xb0: file_deo(1, u->ram, &u->dev[d], p); break;
3 	}
4 	if(p == 0x01 && !(SUPPORT & mask))
5-		fprintf(stderr, "Warning: Incompatible emulation, device: %02x.\n", d >> 4);
6+		fprintf(stderr, "Warning: Incompatible emulation, device: %02x.\n", d);
7 }
8 
9 int