Sjoerd van der Berg
a91af64d77
Changed SHLD and SHRD instructions to use common function defines.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1200
2003-08-23 07:13:06 +00:00
Sjoerd van der Berg
e18440ce32
New core_normal based on old core_16 for handling real and protected mode code.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1199
2003-08-22 20:13:48 +00:00
Sjoerd van der Berg
2ae4a3e7d9
Change switches a bit so compiler can create jump tables
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1196
2003-08-22 09:21:41 +00:00
Ulf Wohlers
8b48f20dbd
FILLFLAGS -> FillFlags
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1183
2003-08-11 15:50:52 +00:00
Sjoerd van der Berg
856e7b3fa9
bug with directly changing the flags.word
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1182
2003-08-11 15:49:14 +00:00
Sjoerd van der Berg
6fed40f0a8
Remove the FILLFLAGS define and use a function call for it.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1180
2003-08-11 08:42:58 +00:00
Sjoerd van der Berg
f97b4bb800
BSR and BSF correctly set zero flag now and 0 source for scan
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1176
2003-07-31 16:05:16 +00:00
Sjoerd van der Berg
76ec14475b
Bit testing opcodes didn't load first operand
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1175
2003-07-31 15:33:08 +00:00
Sjoerd van der Berg
f6cd3dd51e
On exception reset eip to start of opcode.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1173
2003-07-28 08:25:02 +00:00
Sjoerd van der Berg
551fb535f1
Add lazy_flags.h to the makefile
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1172
2003-07-28 08:23:14 +00:00
Sjoerd van der Berg
1ae2780ece
Interrupt now handled without using EXCEPTION.
...
Exception now resets IP to the faulting instruction.
LAHF uses the lower 8-bit of the flags word.
SS changing instruction do another cycle to be interrupt free.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1171
2003-07-28 08:22:15 +00:00
Sjoerd van der Berg
2a4fa63ace
8-bit flag saves need to save Overflow flag and now use cpu function for saving flags.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1170
2003-07-27 22:55:28 +00:00
Sjoerd van der Berg
1780f70232
Core_full cpu decoder starts up when protected mode is enabled.
...
Small change for certain flag bits always being on/off
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1169
2003-07-27 22:53:37 +00:00
Ulf Wohlers
a1fe43c151
Debugger is activated via callback now
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1168
2003-07-27 20:20:40 +00:00
Sjoerd van der Berg
09ed20abec
Removed double segment prefix base add for SIB lookups
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1167
2003-07-27 19:47:47 +00:00
Sjoerd van der Berg
3085db7883
Setting stack segment now sets a stack mask
...
Check for cpu decoder changes when CS changes.
Changed handling of HLT a bit
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1158
2003-07-26 10:41:34 +00:00
Sjoerd van der Berg
1c5b995c6d
callbacks start from 1
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1157
2003-07-26 10:39:14 +00:00
Sjoerd van der Berg
8ca9fc4faa
Some cleanups
...
Callbacks now return from the decoder
Stacks are now read using a mask.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1156
2003-07-26 10:39:01 +00:00
Sjoerd van der Berg
3070b19d73
Little bit of cleaning up
...
Callbacks now return from the cpu core.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1155
2003-07-26 10:36:56 +00:00
Sjoerd van der Berg
41d13152f4
Fix for timing/crashings problem caused by large count when used with scas/cmps
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1150
2003-07-25 11:15:08 +00:00
Sjoerd van der Berg
b0780d0cb4
Use inlined memory access functions.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1131
2003-07-14 11:21:08 +00:00
Sjoerd van der Berg
fd3d665956
add paging.cpp
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1129
2003-07-14 08:55:04 +00:00
Sjoerd van der Berg
93c6c0c803
Main paging handler.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1119
2003-07-14 08:32:39 +00:00
Sjoerd van der Berg
a1993a714c
Call paging functions.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1118
2003-07-14 08:32:22 +00:00
Sjoerd van der Berg
35188cb6c8
use phys_write for rom area.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1117
2003-07-14 08:26:07 +00:00
Ulf Wohlers
c441125606
LEAVECORE is called only if breakpoint is detected (heavy debug), added SaveIP.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1106
2003-07-09 16:11:30 +00:00
Ulf Wohlers
c840ac87c8
LEAVECORE is called only if breakpoint is detected (heavy debug)
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1105
2003-07-09 16:06:47 +00:00
Sjoerd van der Berg
17d3f15643
Make push/pop calls non-inline
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1102
2003-07-08 18:27:14 +00:00
Sjoerd van der Berg
0b12c58d77
Check for interrupt flag and waiting irq's on moments where flags are changed.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1095
2003-07-08 16:46:28 +00:00
Sjoerd van der Berg
fb98d5571e
New lazy flag headers
...
on detection of IRQ leave the core.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1087
2003-07-06 13:36:10 +00:00
Sjoerd van der Berg
708d8cb3c3
CPU Cores keep their own flag handling
...
New lazyflags header file
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1086
2003-07-06 13:10:28 +00:00
Ulf Wohlers
3b0f6bfda8
Added CALLBACK_SetupAt
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1080
2003-07-05 14:05:05 +00:00
Sjoerd van der Berg
a32e1ba658
Fix SETXF instructions
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1078
2003-06-19 17:47:56 +00:00
Sjoerd van der Berg
b222a9576a
Warning clean up
...
Removing some old unused routines
Addind some newlines after some files.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1077
2003-06-19 17:12:50 +00:00
Sjoerd van der Berg
d23a0871e3
REP SCASD
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1071
2003-06-17 06:10:09 +00:00
Sjoerd van der Berg
4d45092d87
Added HLT Instruction handling routines.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1055
2003-06-14 07:27:27 +00:00
Sjoerd van der Berg
019442ad4e
Added HLT Instruction
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1054
2003-06-14 07:26:53 +00:00
Sjoerd van der Berg
5794ebcb0e
Added HLT instruction
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1053
2003-06-14 07:24:17 +00:00
Ulf Wohlers
94ea572dc1
Added real mode iretd
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1052
2003-06-12 13:01:12 +00:00
Sjoerd van der Berg
bb45fd24d7
Fix for 32-bit mov [offset],segment doing 32-bit store, should be 16.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1051
2003-06-12 12:03:59 +00:00
Sjoerd van der Berg
6f9016c8eb
Added 32-bit BSF and BSR
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1046
2003-06-10 08:50:28 +00:00
Sjoerd van der Berg
400da21a32
Added WAIT and 16-bit BSF,BSR
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1044
2003-06-09 23:28:24 +00:00
Sjoerd van der Berg
40a4d72267
Some more 0x0f prefixed instructions related to protected mode.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1040
2003-06-03 18:06:53 +00:00
Sjoerd van der Berg
a8132aee39
Cleaned up a load of comments.
...
Support for pmode related instructions to switch to other core.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1038
2003-06-02 21:22:34 +00:00
Sjoerd van der Berg
f92993a121
add IN EAX,DX
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1037
2003-06-02 21:22:01 +00:00
Sjoerd van der Berg
0682de08be
Fix flags for AAM and AAD
...
Don't check for nonsense rotates, since they do change the flags.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1036
2003-06-02 21:20:17 +00:00
Sjoerd van der Berg
74c8142695
parity table isn't static anymore
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1035
2003-06-02 21:19:08 +00:00
Sjoerd van der Berg
1169165d7f
Allow switching of cpu cores through certain instructions.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1034
2003-06-02 21:18:38 +00:00
Sjoerd van der Berg
2667e412a2
FPU can be enabled/disasbled through C_FPU define.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1019
2003-05-27 12:07:46 +00:00
Sjoerd van der Berg
6295928842
Added support to call the FPU opcode handlers
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1018
2003-05-27 12:00:38 +00:00