From 9f5a0c6859c8829a7792031e7bcf1cea470b70a8 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Mon, 14 Jul 2003 08:25:18 +0000 Subject: [PATCH] use phys_write for setting up callback in rom area. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1116 --- src/ints/mouse.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ints/mouse.cpp b/src/ints/mouse.cpp index 5f24a7dc..be956dfb 100644 --- a/src/ints/mouse.cpp +++ b/src/ints/mouse.cpp @@ -649,11 +649,11 @@ void CreateMouseCallback(void) // Create a mouse vector with weird address // for strange mouse detection routines in Sim City & Wasteland Bit16u ofs = call_int33<<4; - real_writeb((Bit16u)CB_SEG,ofs+0,(Bit8u)0x90); //NOP - real_writeb((Bit16u)CB_SEG,ofs+1,(Bit8u)0xFE); //GRP 4 - real_writeb((Bit16u)CB_SEG,ofs+2,(Bit8u)0x38); //Extra Callback instruction - real_writew((Bit16u)CB_SEG,ofs+3,call_int33); //The immediate word - real_writeb((Bit16u)CB_SEG,ofs+5,(Bit8u)0xCF); //An IRET Instruction + phys_writeb(CB_BASE+ofs+0,(Bit8u)0x90); //NOP + phys_writeb(CB_BASE+ofs+1,(Bit8u)0xFE); //GRP 4 + phys_writeb(CB_BASE+ofs+2,(Bit8u)0x38); //Extra Callback instruction + phys_writew(CB_BASE+ofs+3,call_int33); //The immediate word + phys_writeb(CB_BASE+ofs+5,(Bit8u)0xCF); //An IRET Instruction // Write weird vector WriteMouseIntVector(); };