Aleksandar Andrejevic
489dfb314e
[SOFT386]
...
Fix bugs in SF calculation.
svn path=/branches/ntvdm/; revision=60687
2013-10-16 02:22:40 +00:00
Aleksandar Andrejevic
4b14d9a672
[SOFT386]
...
Start implementing call gate support.
Implement the direct far call opcode (0x9A).
svn path=/branches/ntvdm/; revision=60685
2013-10-16 00:41:24 +00:00
Aleksandar Andrejevic
151db5ddd0
[SOFT386]
...
Implement far returns (both versions in Soft386OpcodeRetFar).
svn path=/branches/ntvdm/; revision=60680
2013-10-15 18:54:11 +00:00
Aleksandar Andrejevic
8d2a19ae5d
[SOFT386]
...
Implement far jumps.
svn path=/branches/ntvdm/; revision=60679
2013-10-15 17:27:23 +00:00
Aleksandar Andrejevic
642b52c4e1
[SOFT386]
...
Halfplement REPZ/REPNZ for CMPS and SCAS.
svn path=/branches/ntvdm/; revision=60658
2013-10-13 23:59:52 +00:00
Aleksandar Andrejevic
4ad8a401ef
[SOFT386]
...
Implement the REP prefix for MOVS.
Fix the REP prefix in INS, OUTS and STOS to simulate the DI
wrap-around even if DF is set.
svn path=/branches/ntvdm/; revision=60645
2013-10-13 21:15:01 +00:00
Aleksandar Andrejevic
a2e0e03ee6
[SOFT386]
...
- Fix calculation of the AF flag in opcode groups 0xFE and 0xFF (INC/DEC).
- Fix a bug in the REP prefix by simulating the wrap-around of DI which
can occur when the current address size is 16-bit.
- Exception error codes are only pushed on the stack in protected mode.
svn path=/branches/ntvdm/; revision=60625
2013-10-11 23:45:42 +00:00
Aleksandar Andrejevic
da5b8fc439
[SOFT386]
...
Fix prefix handling.
svn path=/branches/ntvdm/; revision=60620
2013-10-11 20:48:19 +00:00
Aleksandar Andrejevic
47390630ed
[SOFT386]
...
Fix a bad call to RtlFillMemory.
svn path=/branches/ntvdm/; revision=60618
2013-10-11 19:24:58 +00:00
Aleksandar Andrejevic
37059f6dfc
[SOFT386]
...
Fix incorrect (reverse) handling of the DF flag.
svn path=/branches/ntvdm/; revision=60617
2013-10-11 19:02:06 +00:00
Aleksandar Andrejevic
caf9a0a671
[SOFT386]
...
Implement the REP prefix for OUTS, LODS and STOS.
svn path=/branches/ntvdm/; revision=60616
2013-10-11 18:34:31 +00:00
Aleksandar Andrejevic
20486fd1b7
[SOFT386]
...
Clear the memory block before it's used.
svn path=/branches/ntvdm/; revision=60612
2013-10-11 16:31:35 +00:00
Aleksandar Andrejevic
b22da55f8f
[SOFT386]
...
Implement the REP prefix for the INS instruction.
svn path=/branches/ntvdm/; revision=60600
2013-10-10 19:01:41 +00:00
Aleksandar Andrejevic
182d7c8725
[SOFT386]
...
Fix more prefix handling code.
Implement the XLAT instruction.
svn path=/branches/ntvdm/; revision=60586
2013-10-09 00:36:37 +00:00
Aleksandar Andrejevic
9339e12e69
[SOFT386]
...
Fix prefix handling.
svn path=/branches/ntvdm/; revision=60585
2013-10-08 23:03:56 +00:00
Aleksandar Andrejevic
7078f183fb
[SOFT386]
...
Fix a bug in the CMP instruction.
Implement the SBB instruction.
svn path=/branches/ntvdm/; revision=60584
2013-10-08 22:27:48 +00:00
Aleksandar Andrejevic
f10f82d938
[SOFT386]
...
Start implementing extended opcodes.
svn path=/branches/ntvdm/; revision=60562
2013-10-06 15:22:52 +00:00
Aleksandar Andrejevic
15a8cc4515
[SOFT386]
...
Set the opcode handler for the INS and OUTS instructions to be
Soft386OpcodeIns and Soft386OpcodeOuts, respectively.
svn path=/branches/ntvdm/; revision=60543
2013-10-05 20:12:08 +00:00
Aleksandar Andrejevic
fbcc4ad158
[SOFT386]
...
Halfplement INS and OUTS.
svn path=/branches/ntvdm/; revision=60540
2013-10-05 20:06:19 +00:00
Aleksandar Andrejevic
3593b8c8ef
[SOFT386]
...
Fix bugs in STOS and LODS (only one register is incremented).
Implement CMPS and SCAS.
svn path=/branches/ntvdm/; revision=60525
2013-10-04 19:51:11 +00:00
Aleksandar Andrejevic
c190ca817c
[SOFT386]
...
Halfplement MOVS, STOS and LODS.
Stubplement CMPS and SCAS.
svn path=/branches/ntvdm/; revision=60515
2013-10-03 20:56:36 +00:00
Aleksandar Andrejevic
c2e98bca7f
[SOFT386]
...
Implement the (undocumented) opcode SALC.
svn path=/branches/ntvdm/; revision=60492
2013-10-01 15:02:07 +00:00
Aleksandar Andrejevic
17a32f3b2a
[SOFT386]
...
Change the license of Soft386 to GPLv2. The previous license was also
GPLv2, but it had a runtime linking exception. The new license is the
original GPLv2 with no exceptions.
svn path=/branches/ntvdm/; revision=60485
2013-09-30 22:01:38 +00:00
Aleksandar Andrejevic
79355ae971
[SOFT386]
...
Fix prefix handling.
svn path=/branches/ntvdm/; revision=60464
2013-09-30 00:27:56 +00:00
Aleksandar Andrejevic
b9a1962978
[SOFT386]
...
Fix the LOOP instruction. LOOP should loop while ECX is not zero, not otherwise.
svn path=/branches/ntvdm/; revision=60463
2013-09-30 00:02:53 +00:00
Aleksandar Andrejevic
9331ef28b9
[SOFT386]
...
Implement opcode group 0x80. Group 0x82 is just an alias to group 0x80.
svn path=/branches/ntvdm/; revision=60450
2013-09-29 15:04:43 +00:00
Aleksandar Andrejevic
abf9647dd9
[SOFT386]
...
Stubplement opcode group handlers.
svn path=/branches/ntvdm/; revision=60441
2013-09-28 18:56:58 +00:00
Aleksandar Andrejevic
2812f2f8a5
[SOFT386]
...
Disallow direct writing to CS. Changing CS must be done with a far jump.
svn path=/branches/ntvdm/; revision=60399
2013-09-28 03:15:48 +00:00
Aleksandar Andrejevic
6db4f4e558
[SOFT386]
...
Implement MOV for segment registers.
svn path=/branches/ntvdm/; revision=60398
2013-09-28 03:01:07 +00:00
Aleksandar Andrejevic
cad18120fa
[SOFT386]
...
Fix the BOP opcode. It's LES AX, SP not LES AX, BP.
svn path=/branches/ntvdm/; revision=60396
2013-09-28 00:46:04 +00:00
Aleksandar Andrejevic
7e119cf40b
[SOFT386]
...
Implement the LES and LDS instructions.
Add optional support for BOPs (NTVDM-specific).
Fix prefix handling in some functions.
[NTVDM]
Enable BOPs for Soft386 (when NEW_EMULATOR is defined).
Fix the calling convention issue (softx86 uses cdecl, soft386 uses stdcall).
svn path=/branches/ntvdm/; revision=60395
2013-09-28 00:29:16 +00:00
Aleksandar Andrejevic
dc29fa9ab1
[SOFT386]
...
Fix the return to VM86 mode. The VM flag must be set before the call to Soft386LoadSegment.
svn path=/branches/ntvdm/; revision=60393
2013-09-27 21:23:34 +00:00
Aleksandar Andrejevic
78e8653765
[SOFT386]
...
Halfplement the IRET instruction (everything except task switching).
svn path=/branches/ntvdm/; revision=60392
2013-09-27 21:18:09 +00:00
Aleksandar Andrejevic
e05e583e56
[SOFT386]
...
Implement the ENTER instruction.
svn path=/branches/ntvdm/; revision=60350
2013-09-25 18:34:57 +00:00
Aleksandar Andrejevic
597a77ed3c
[SOFT386]
...
Implement the IMUL instruction. Both versions have been implemented in Soft386OpcodeImulModrm.
svn path=/branches/ntvdm/; revision=60344
2013-09-23 17:29:42 +00:00
Aleksandar Andrejevic
442b56b45b
[SOFT386]
...
Implement the AAM and AAD instructions.
svn path=/branches/ntvdm/; revision=60342
2013-09-23 16:03:23 +00:00
Aleksandar Andrejevic
b5a9d7490a
[SOFT386]
...
Implement the POPF instruction.
svn path=/branches/ntvdm/; revision=60341
2013-09-23 14:10:14 +00:00
Aleksandar Andrejevic
432372c3b6
[SOFT386]
...
Implement the MOV AL/AX/EAX, off16/32 and MOV off16/32, AL/AX/EAX instructions.
svn path=/branches/ntvdm/; revision=60289
2013-09-21 18:44:59 +00:00
Aleksandar Andrejevic
60a7ff2e92
[SOFT386]
...
Implement the PUSHF instruction.
svn path=/branches/ntvdm/; revision=60261
2013-09-21 02:33:01 +00:00
Aleksandar Andrejevic
6a2d76ab68
[SOFT386]
...
Fix prefix handling.
svn path=/branches/ntvdm/; revision=60260
2013-09-21 02:18:41 +00:00
Aleksandar Andrejevic
9d7137b757
[SOFT386]
...
Fix the CALL instruction. The offset must be fetched before EIP is pushed.
svn path=/branches/ntvdm/; revision=60259
2013-09-21 01:00:36 +00:00
Aleksandar Andrejevic
34157419d7
[SOFT386]
...
Implement the INT, INT3 and INTO instructions (all 3 in Soft386OpcodeInt).
svn path=/branches/ntvdm/; revision=60256
2013-09-21 00:18:59 +00:00
Aleksandar Andrejevic
1d3d2fc07a
[SOFT386]
...
Implement the RET instruction.
svn path=/branches/ntvdm/; revision=60229
2013-09-19 23:24:05 +00:00
Aleksandar Andrejevic
d3a6556ea5
[SOFT386]
...
Implement JECXZ, LOOP, LOOPZ and LOOPNZ.
svn path=/branches/ntvdm/; revision=60226
2013-09-19 22:48:45 +00:00
Aleksandar Andrejevic
3dc329ae81
[SOFT386]
...
Implement the LEAVE instruction.
svn path=/branches/ntvdm/; revision=60201
2013-09-18 21:13:40 +00:00
Aleksandar Andrejevic
f9dd2776ab
[SOFT386]
...
Fix the ARPL instruction.
Use "inline" instead of FORCEINLINE for static functions.
svn path=/branches/ntvdm/; revision=60195
2013-09-17 23:12:25 +00:00
Hermès Bélusca-Maïto
85f05060e4
[SOFT386]
...
- Put inlined functions in a .inl file, which gets included by the corresponding header file (i.e. fix MSVC builds).
- Use enums types instead of "only" INTs...
svn path=/branches/ntvdm/; revision=60193
2013-09-17 23:02:22 +00:00
Aleksandar Andrejevic
bbb37c9152
[SOFT386]
...
Implement Soft386OpcodeTestAl and Soft386OpcodeTestEax.
These functions were declared and referenced, but never defined.
Why the compiler allowed that without even a warning remains a mystery.
svn path=/branches/ntvdm/; revision=60183
2013-09-17 20:28:26 +00:00
Aleksandar Andrejevic
b78a6cb212
[SOFT386]
...
Implement the direct relative near call (CALL rel16/32) instruction.
svn path=/branches/ntvdm/; revision=60147
2013-09-15 18:26:25 +00:00
Aleksandar Andrejevic
429d182d64
[SOFT386]
...
Implement JMP rel16/32
svn path=/branches/ntvdm/; revision=60146
2013-09-15 18:18:58 +00:00