Fixed some disassembler issues. At least some instuctions are being disassembled correctly.

This commit is contained in:
2022-08-26 21:43:03 -05:00
parent 0785f21805
commit 8e9d1aefe8
3 changed files with 35 additions and 28 deletions
+5 -5
View File
@@ -68,11 +68,11 @@ unsigned char* ParseTokens(List* tokens) {
if (SymbolsTable->size > 0) PrintSymbols();
DestroyList(SymbolsTable);
// for(int i = 0; i < 33; i++) {
// if (i != 0 && i % 3 == 0) printf("\n");
// printf("%02X ", Memory[i] & 0xFF);
// }
// printf("\n");
for(int i = 0; i < 33; i++) {
if (i != 0 && i % 3 == 0) printf("\n");
printf("%02X ", Memory[i] & 0xFF);
}
printf("\n");
// printf("Program Counter: %d\n", ProgramCounter);
//printf("Heap Top: %#06X\n", HeapTop);
return Memory;