From 155cbc5dffb9f7cda4441b9b3174d616ed7895cd Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Mon, 22 Sep 2003 14:36:13 +0000 Subject: [PATCH] Add opcode 0xe5 an 0xe7 Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1261 --- src/cpu/core_normal/prefix_66.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/cpu/core_normal/prefix_66.h b/src/cpu/core_normal/prefix_66.h index 0fd1d5dc..1530db9a 100644 --- a/src/cpu/core_normal/prefix_66.h +++ b/src/cpu/core_normal/prefix_66.h @@ -512,6 +512,24 @@ GRP2D(1);break; CASE_D(0xd3) /* GRP2 Ed,CL */ GRP2D(reg_cl);break; + CASE_D(0xe5) /* IN EAX,Ib */ + { + Bit16u port=Fetchb(); + reg_eax=IO_Read(port) | + (IO_Read(port+1) << 8 ) | + (IO_Read(port+2) << 16 ) | + (IO_Read(port+3) << 24 ); + break; + } + CASE_D(0xe7) /* OUT Ib,EAX */ + { + Bit16u port=Fetchb(); + IO_Write(port+0,(Bit8u)(reg_eax >> 0)); + IO_Write(port+1,(Bit8u)(reg_eax >> 8)); + IO_Write(port+2,(Bit8u)(reg_eax >> 16)); + IO_Write(port+3,(Bit8u)(reg_eax >> 24)); + break; + } CASE_D(0xe8) /* CALL Jd */ { Bit32s newip=Fetchds();