1
0
mirror of https://github.com/open-simh/simh.git synced 2026-02-11 02:40:35 +00:00
Files
open-simh.simh/AltairZ80
Howard M. Harte e91fbebe3d AltairZ80: i86: Don't clear segment override on REPE/REPNE
MASM generates REP CS:MOVSW as:

REP
CS:
MOVSW

The Seattle Computer Products 8086 assembler allows the segment override
as a discrete opcode.  This means that:

CS:
REP
MOVSW

is also possible, and in fact used in the SCP Monitor v1.6.

The i86 emulator was clearing the override flags when REPE/REPNE,
is encountered, which causes the segment override to be lost.
Verifying the behavior of a real 80286 processor in an IBM PC/AT
(5170) using MS-DOS 6.22 DEBUG shows that both instruction sequences
yield the desired segment override.
2022-11-06 16:41:51 -05:00
..
2016-05-15 15:25:33 -07:00
2011-04-15 08:35:54 -07:00
2011-04-15 08:35:54 -07:00
2021-02-09 13:34:53 +01:00