Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sys: fix, work on DOS versions that clobber di in int 25h/26h #159

Merged
merged 1 commit into from
May 19, 2024

Conversation

ecm-pushbx
Copy link
Contributor

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)

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)
@ecm-pushbx ecm-pushbx force-pushed the ecm-drdos-v7.03-gcc-sys-fix branch from ceaaaea to 81b0701 Compare May 19, 2024 21:25
@PerditionC PerditionC merged commit 8e8fcd1 into FDOS:master May 19, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants