From 07980e780e331352ea81d0176d9028325968a771 Mon Sep 17 00:00:00 2001 From: alekseiplusplus Date: Tue, 11 Apr 2023 13:30:17 +1000 Subject: interpreter.c can run, but segfaults. --- debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'debug.h') diff --git a/debug.h b/debug.h index 85520ca..0ef38ce 100644 --- a/debug.h +++ b/debug.h @@ -21,7 +21,7 @@ int dCharToNum(char c){ // Dump a particular page in memory. void dPageDump(short m){ - m *= 0x0100; + m <<= 8; for(int i = 0; i < 256; i+=16){ printf("\t"); for(int j = 0; j < 16; j+=1){ -- cgit v1.2.3