Now that PCjs supports specific steppings, set the reset revision number accordingly
This commit is contained in:
parent
03dd91cf23
commit
4403f90b5d
3 changed files with 51 additions and 5 deletions
|
|
@ -856,7 +856,7 @@ Never allocate valid memory at 0x80000xxx.
|
|||
|
||||
### Instructions
|
||||
|
||||
Here's more information on the opcodes (IBTS and XBTS) that were removed from the B1 stepping.
|
||||
Here's more information on the 80386 opcodes (IBTS and XBTS) that were removed from the 80386, as of the B1 stepping.
|
||||
|
||||
[IBTS (0x0F 0xA7)](http://asm.inightmare.org/opcodelst/index.php?op=IBTS)
|
||||
|
||||
|
|
@ -898,6 +898,28 @@ Here's more information on the opcodes (IBTS and XBTS) that were removed from th
|
|||
Clocks: XBTS
|
||||
80386: 6/13
|
||||
|
||||
FYI, PCjs now has limited support for the XBTS (0x0F 0xA6) and IBTS (0x0F 0xA7) instructions in any 80386 machine
|
||||
configuration file that contains a CPU *stepping* attribute of "A0" through "B0".
|
||||
|
||||
By limited, I mean that:
|
||||
|
||||
1. The Debugger component can disassemble them
|
||||
2. The X86CPU component can emulate them (but only for bit indexes 0-31)
|
||||
|
||||
I'm content with limited emulation, because it seems unlikely there is much (if any) real-world software that actually
|
||||
used those short-lived instructions except as a way of discriminating between 80386 steppings. I also couldn't find any
|
||||
decent specs for exactly how these instructions operated, so the emulation will have to stay limited.
|
||||
|
||||
The 0xA6 and 0xA7 opcodes were briefly reused on early 80486 CPUs for the byte and word forms, respectively, of CMPXCHG,
|
||||
but then those CMPXCHG instructions were moved to opcodes 0xB0 and 0xB1 on later 80486 CPUs.
|
||||
|
||||
NOTE: The "PC Magazine Programmer's Technical Reference" claims that CMPXCHG used 0x0F opcodes 0xA6 and 0xA7 only on the
|
||||
80486 B0 stepping, and that they were moved to 0x0F opcodes 0xB0 and 0xB1 on the "B1" stepping. However, I can't find
|
||||
any independent confirmation of that.
|
||||
|
||||
Most other sources suggest that CMPXCHG used the old XBTS/IBTS opcodes only on 80486 "A" steppings, not any "B" steppings.
|
||||
The PC Magazine author may have simply confused the 0xB0 and 0xB1 opcodes with the B0 and B1 steppings.
|
||||
|
||||
*[@jeffpar](http://twitter.com/jeffpar)*
|
||||
*February 23, 2015*
|
||||
*(Updated March 9, 2015 with information from "Advanced 80386 Programming Techniques")*
|
||||
|
|
|
|||
Loading…
Reference in a new issue