DREAMWEB: Save registers in vsync, like in original sources

This commit is contained in:
Vladimir Menshakov 2011-06-25 21:51:27 +04:00
parent b66ca60088
commit 7745850808

View File

@ -434,7 +434,23 @@ void DreamGenContext::doshake() {
}
void DreamGenContext::vsync() {
push(ax);
push(bx);
push(cx);
push(dx);
push(si);
push(di);
push(es);
push(ds);
engine->waitForVSync();
ds = pop();
es = pop();
di = pop();
si = pop();
dx = pop();
cx = pop();
bx = pop();
ax = pop();
}
void DreamGenContext::setmode() {