(snip, someone wrote)
I have been looking at the results for the program RESORC.SAV in RT-11
with respect the MFPT instruction. When the J11 chip is used, the value
is 5 and the Maintenance Register at 177750 seems to determine what the
rest of the actual hardware supports.
(snip, someone else wrote)
Modifying the MFPT instruction is not the right way to go. CPU
software detection is a delicate business and that process should not
be interfered with directly.
In any case, an emulator is not equivalent to a processor type since
SimH and E11 support a range of PDP-11 CPUs.
Also right. And each CPU behaves differently, and the emulator needs to
follow that, or it is broken.
Or, the emulator can emulate a CPU model different from any previously
built. That usually at least happens in that the emulator runs at a
different speed than any real processor.
My suggestion would be to treat the speed difference
Some CPU software detection is handled by examining CPU behavior. The
same process can be used to detect an emulator and to determine which
emulator is being used.
Right. I just posted an outline of how RSX-11M+ detects system type.
It's a combination of available information as well as CPU behavior in
very weird and possibly not documented ways.
I have seen the rules for detecting different x86 CPUs, from 8086 and
8088 on up. Some are pretty strange, though usually documented at least
as needed for detection.
As has been pointed out, however, an emulator