int 21 31 does not set the carry flag anymore
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1245
This commit is contained in:
parent
55237d31e3
commit
8c86a9768e
1 changed files with 5 additions and 9 deletions
|
@ -327,16 +327,12 @@ static Bitu DOS_21Handler(void) {
|
|||
reg_ah=dos.version.minor;
|
||||
break;
|
||||
case 0x31: /* Terminate and stay resident */
|
||||
//TODO First get normal files executing
|
||||
//TODO First get normal files executing
|
||||
// Important: This service does not set the carry flag!
|
||||
DOS_ResizeMemory(dos.psp,®_dx);
|
||||
if (DOS_Terminate(true)) {
|
||||
dos.return_code=reg_al;
|
||||
dos.return_mode=RETURN_TSR;
|
||||
CALLBACK_SCF(false);
|
||||
} else {
|
||||
reg_ax=dos.errorcode;
|
||||
CALLBACK_SCF(true);
|
||||
}
|
||||
DOS_Terminate(true);
|
||||
dos.return_code=reg_al;
|
||||
dos.return_mode=RETURN_TSR;
|
||||
break;
|
||||
case 0x33: /* Extended Break Checking */
|
||||
switch (reg_al) {
|
||||
|
|
Loading…
Add table
Reference in a new issue