mirror of
https://github.com/prirun/p50em.git
synced 2026-02-12 18:37:18 +00:00
Support for booting DOS pre-Rev20
PRIMOS2 was built to be relocated after being loaded by BOOT. The build process rewrote the RVEC in the save file. The SA was anded with :160000; the result was subtracted from SA and EA in the RVEC, and stored into RA in the RVEC. The BOOT program knew to add the RA value during the load process. This change causes the emulator to recognize such an RVEC when booting an R-mode executable from unix disk, and to adjust the RVEC before actually loading the program. This fixes failure to boot *DOS64 from 19.2.9, for example. The code only makes this adjustment if RA is non-zero, and RP is not between SA and EA.
This commit is contained in:
Reference in New Issue
Block a user