Add screen(), memory mapped frame buffer
diff --git a/main.c b/main.c
index 9a03f95..07af040 100644
--- a/main.c
+++ b/main.c
@@ -60,9 +60,10 @@
{
printf("6502 emulator, disassembler and debugger\n"
"Usage:\n"
+ " -g use GUI\n"
" -d disassemble input\n"
" -r run input\n"
- " -D debug input (open debug prompt)\n"
+ " -D open CLI debug prompt (like gdb)\n"
" -i <input> set input file, defaults to standard input\n"
" -n <number> number of instructions to disassemble, 0 for all\n"
" -h, -? show this help page\n");
@@ -74,7 +75,7 @@
if (should_read)
{
cpu = new_cpu();
- fread(cpu.mem, 0xFFFF, 1, input);
+ fread(cpu.mem + 0x600, 0xFFFF - 0x600, 1, input);
}
else
{