Fixes #43 - Starting with --machine=apple1 hangs the emulator

This commit is contained in:
Stefan Arentz 2016-11-23 22:25:36 -05:00
parent eab16a1d3b
commit 2ad92e33ca
1 changed files with 1 additions and 1 deletions

2
ewm.c
View File

@ -38,7 +38,7 @@ static int setup_apple1(struct cpu_t *cpu) {
struct pia_t *pia = malloc(sizeof(struct pia_t));
pia_init(pia);
cpu_add_ram(cpu, 0x0000, 8 * 1024 - 1);
cpu_add_rom_file(cpu, 0xff00, "roms/apple1.com");
cpu_add_rom_file(cpu, 0xff00, "roms/apple1.rom");
cpu_add_iom(cpu, EWM_A1_PIA6820_ADDR, EWM_A1_PIA6820_ADDR + EWM_A1_PIA6820_LENGTH - 1, pia, pia_read, pia_write);
return 0;
}