Map bios into high memory, fixes reboot via seabios and #1

This commit is contained in:
copy 2013-11-08 18:10:11 +01:00
commit 352dc7dda7

View file

@ -539,6 +539,18 @@ function cpu_init(settings)
}
}
// seabios expects the bios to be mapped to 0xFFF00000 also
memory.mmap_register(0xFFF00000, 0x100000, false,
function(addr)
{
return memory.mem8[addr];
},
function(addr, value)
{
memory.mem8[addr] = value;
});
// ip initial value
instruction_pointer = 0xFFFF0;