Fix I/O exception caused by callbacks (16 and 32-bit accesses)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3695
This commit is contained in:
parent
f214d70367
commit
66e7ddcea5
1 changed files with 2 additions and 2 deletions
|
@ -328,7 +328,7 @@ void IO_WriteW(Bitu port,Bitu val) {
|
|||
CPU_Push16(reg_ip);
|
||||
Bit16u old_ax = reg_ax;
|
||||
Bit16u old_dx = reg_dx;
|
||||
reg_al = val;
|
||||
reg_ax = val;
|
||||
reg_dx = port;
|
||||
RealPt icb = CALLBACK_RealPointer(call_priv_io);
|
||||
SegSet16(cs,RealSeg(icb));
|
||||
|
@ -364,7 +364,7 @@ void IO_WriteD(Bitu port,Bitu val) {
|
|||
CPU_Push16(reg_ip);
|
||||
Bit32u old_eax = reg_eax;
|
||||
Bit16u old_dx = reg_dx;
|
||||
reg_al = val;
|
||||
reg_eax = val;
|
||||
reg_dx = port;
|
||||
RealPt icb = CALLBACK_RealPointer(call_priv_io);
|
||||
SegSet16(cs,RealSeg(icb));
|
||||
|
|
Loading…
Add table
Reference in a new issue