|
|
| version 1.12, 2003/12/11 21:57:38 | version 1.14, 2004/02/18 18:29:29 |
|---|---|
| Line 1 | Line 1 |
| #include "compiler.h" | #include "compiler.h" |
| #include "cpucore.h" | #include "cpucore.h" |
| #include "i286c.h" | #include "i286c.h" |
| #include "memory.h" | |
| #include "i286c.mcr" | #include "i286c.mcr" |
| Line 146 I286_F6 _call_far_ea16(UINT op) { | Line 145 I286_F6 _call_far_ea16(UINT op) { |
| REGPUSH0(I286_IP) | REGPUSH0(I286_IP) |
| I286_IP = i286_memoryread_w(seg + ad); | I286_IP = i286_memoryread_w(seg + ad); |
| I286_CS = i286_memoryread_w(seg + LOW16(ad + 2)); | I286_CS = i286_memoryread_w(seg + LOW16(ad + 2)); |
| CS_BASE = I286_CS << 4; | CS_BASE = SEGSELECT(I286_CS); |
| } | } |
| else { | else { |
| INT_NUM(6, I286_IP - 2); | INT_NUM(6, I286_IP - 2); |
| Line 175 I286_F6 _jmp_far_ea16(UINT op) { | Line 174 I286_F6 _jmp_far_ea16(UINT op) { |
| ad = GET_EA(op, &seg); | ad = GET_EA(op, &seg); |
| I286_IP = i286_memoryread_w(seg + ad); | I286_IP = i286_memoryread_w(seg + ad); |
| I286_CS = i286_memoryread_w(seg + LOW16(ad + 2)); | I286_CS = i286_memoryread_w(seg + LOW16(ad + 2)); |
| CS_BASE = I286_CS << 4; | CS_BASE = SEGSELECT(I286_CS); |
| } | } |
| else { | else { |
| INT_NUM(6, I286_IP - 2); | INT_NUM(6, I286_IP - 2); |