Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sys: fix, work on DOS versions that clobber di in int 25h/26h
Running on DR-DOS v7.03, the int 25h call zeroes di leading to a crash here when di is expected to preserve the stack pointer. So push di twice and pop it twice. The second pop always gets the saved sp, regardless of whether int 21h or int 25h/26h are used. Refer to SvarDOS/edrdos#57 (comment)
- Loading branch information