summaryrefslogtreecommitdiff
path: root/debug.h
diff options
context:
space:
mode:
authoralekseiplusplus <alekseijeaves@protonmail.com>2023-04-11 13:30:17 +1000
committeralekseiplusplus <alekseijeaves@protonmail.com>2023-04-11 13:30:17 +1000
commit07980e780e331352ea81d0176d9028325968a771 (patch)
tree8364d564b93ca7abbb190a308abaf205bdb04487 /debug.h
parent3f3574efb1e1c27d2f471c9b4a87a9786326e773 (diff)
interpreter.c can run, but segfaults.
Diffstat (limited to 'debug.h')
-rw-r--r--debug.h2
1 files changed, 1 insertions, 1 deletions
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){