diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main.c b/main.c index 48d35ee..7c5a2fc 100644 --- a/main.c +++ b/main.c @@ -16,6 +16,8 @@ int main(int argc, char** argv) Emulator emulator; + emulator_initialise(&emulator); + if(emulator_load_rom(&emulator, argv[1]) != 0) return 2; @@ -23,7 +25,7 @@ int main(int argc, char** argv) for(int i = 0; i < sizeof(emulator.memory); ++i) { - printf("%c ", emulator.memory[i]); + printf("0x%x ", emulator.memory[i]); } putchar('\n'); |