Skip to content

Commit

Permalink
task: another fix AlphaWaves attempt [fixes #115]
Browse files Browse the repository at this point in the history
int21/26h under ms-dos uses CS instead of current_psp.
This is quite bad, but AlphaWaves is not going to work otherwise.

See also #185
  • Loading branch information
stsp committed Oct 14, 2023
1 parent 8a76614 commit f2962db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel/inthndlr.c
Original file line number Diff line number Diff line change
Expand Up @@ -682,8 +682,9 @@ VOID ASMCFUNC int21_service(iregs FAR * r)
/* case 0x25: handled above (re-entrant) */

/* Dos Create New Psp */
/* Needs to use CS, not cu_psp, or AlphaWaves doesn't work. */
case 0x26:
new_psp(lr.DX, cu_psp);
new_psp(lr.DX, r->cs);
break;

/* Read random record(s) using FCB */
Expand Down

0 comments on commit f2962db

Please sign in to comment.