Reinstate vbl hack.

This commit is contained in:
Will Scullin 2019-12-29 13:35:00 -08:00
parent deec11a2a3
commit 680de778ee
No known key found for this signature in database
GPG Key ID: 9092A5C0A673416B

View File

@ -35,9 +35,10 @@ export function Apple2(options) {
vm.enhanced(options.enhanced);
var io = new Apple2IO(cpu, vm);
var mmu = null;
if (options.e) {
var mmu = new MMU(cpu, vm, gr, gr2, hgr, hgr2, io, options.rom);
mmu = new MMU(cpu, vm, gr, gr2, hgr, hgr2, io, options.rom);
cpu.addPageHandler(mmu);
} else {
var ram1 = new RAM(0x00, 0x03),
@ -100,6 +101,9 @@ export function Apple2(options) {
} else {
cpu.stepCycles(step);
}
if (mmu) {
mmu.resetVB();
}
if (io.annunciator(0)) {
if (options.multiScreen) {
vm.blit();