commit 7021ac6

Devine Lu Linvega  ·  2024-11-13 01:03:34 +0000 UTC
parent bbab985
Fixed offset in memory loading
1 files changed,  +1, -1
+1, -1
1@@ -37,7 +37,7 @@ system_load(Uint8 *ram, char *filename)
2 	if(f) {
3 		int i = 0, l = fread(ram, 0x10000 - PAGE_PROGRAM, 1, f);
4 		while(l && ++i < RAM_PAGES)
5-			l = fread(ram + 0x10000 * i, 0x10000, 1, f);
6+			l = fread(ram + 0x10000 * i - PAGE_PROGRAM, 0x10000, 1, f);
7 		fclose(f);
8 	}
9 	return !!f;