From 77ea2b2ab9b636018926454996f07c11d5c22fc7 Mon Sep 17 00:00:00 2001 From: OBattler Date: Sun, 19 Nov 2017 09:53:19 +0100 Subject: [PATCH] CS segment base is now set correctly on reset. --- src/cpu/808x.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cpu/808x.c b/src/cpu/808x.c index e2f88af25..91b0975aa 100644 --- a/src/cpu/808x.c +++ b/src/cpu/808x.c @@ -1,4 +1,4 @@ -/* +/* * 86Box A hypervisor and IBM PC system emulator that specializes in * running old operating systems and software designed for IBM * PC systems and compatibles from 1981 through fairly recent @@ -600,8 +600,8 @@ void resetx86() cgate32=0; if(AT) { -// loadcs(cpu_16bitbus ? 0xFF000 : 0xFFFF000); arg is uint16_t - loadcs(cpu_16bitbus ? 0xFF00 : 0xFFFF); + loadcs(0xF000); + _cs.base = cpu_16bitbus ? 0xFF0000 : 0xFFFF0000; cpu_state.pc=0xFFF0; rammask = cpu_16bitbus ? 0xFFFFFF : 0xFFFFFFFF; } @@ -647,8 +647,8 @@ void softresetx86() cgate32=0; if(AT) { -// loadcs(cpu_16bitbus ? 0xFF000 : 0xFFFF000); arg is uint16_t - loadcs(cpu_16bitbus ? 0xFF00 : 0xFFFF); + loadcs(0xF000); + _cs.base = cpu_16bitbus ? 0xFF0000 : 0xFFFF0000; cpu_state.pc=0xFFF0; rammask = cpu_16bitbus ? 0xFFFFFF : 0xFFFFFFFF; }