cleanups by Lucho

git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@960 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
Bart Oldeman 2004-05-24 23:38:11 +00:00
parent 0c00651565
commit 9a1418a6c8
1 changed files with 10 additions and 17 deletions

View File

@ -123,24 +123,23 @@ VOID ASMCFUNC int21_syscall(iregs FAR * irp)
break; break;
/* Toggle DOS-C rdwrblock trace dump */ /* Toggle DOS-C rdwrblock trace dump */
case 0xfd:
#ifdef DEBUG #ifdef DEBUG
case 0xfd:
bDumpRdWrParms = !bDumpRdWrParms; bDumpRdWrParms = !bDumpRdWrParms;
#endif
break; break;
#endif
/* Toggle DOS-C syscall trace dump */ /* Toggle DOS-C syscall trace dump */
case 0xfe:
#ifdef DEBUG #ifdef DEBUG
case 0xfe:
bDumpRegs = !bDumpRegs; bDumpRegs = !bDumpRegs;
#endif
break; break;
#endif
/* Get DOS-C release string pointer */ /* Get DOS-C release string pointer */
case 0xff: case 0xff:
irp->DX = FP_SEG(os_release); irp->DX = FP_SEG(os_release);
irp->AX = FP_OFF(os_release); irp->AX = FP_OFF(os_release);
break;
} }
break; break;
@ -160,17 +159,13 @@ VOID ASMCFUNC int21_syscall(iregs FAR * irp)
/* Get PSP */ /* Get PSP */
case 0x51: case 0x51:
irp->BX = cu_psp;
break;
/* UNDOCUMENTED: return current psp */ /* UNDOCUMENTED: return current psp */
case 0x62: case 0x62:
irp->BX = cu_psp; irp->BX = cu_psp;
break; break;
/* Normal DOS function - DO NOT ARRIVE HERE */ /* Normal DOS function - DO NOT ARRIVE HERE */
default: /* default: */
break;
} }
} }
@ -839,7 +834,6 @@ dispatch:
{ {
/* Set Country Code */ /* Set Country Code */
rc = DosSetCountry(cntry); rc = DosSetCountry(cntry);
goto short_check;
} }
else else
{ {
@ -855,10 +849,9 @@ dispatch:
/* END OF HACK */ /* END OF HACK */
lr.AX = lr.BX = cntry; lr.AX = lr.BX = cntry;
} }
goto short_check;
} }
goto short_check;
} }
break;
/* Dos Create Directory */ /* Dos Create Directory */
case 0x39: case 0x39:
@ -1574,7 +1567,7 @@ VOID ASMCFUNC int2526_handler(WORD mode, struct int25regs FAR * r)
if (drv >= lastdrive) if (drv >= lastdrive)
{ {
r->ax = 0x201; r->ax = 0x201;
r->flags |= FLG_CARRY; SET_CARRY_FLAG();
return; return;
} }
@ -1584,7 +1577,7 @@ VOID ASMCFUNC int2526_handler(WORD mode, struct int25regs FAR * r)
if (dpbp != NULL && ISFAT32(dpbp)) if (dpbp != NULL && ISFAT32(dpbp))
{ {
r->ax = 0x207; r->ax = 0x207;
r->flags |= FLG_CARRY; SET_CARRY_FLAG();
return; return;
} }
} }
@ -1607,10 +1600,10 @@ VOID ASMCFUNC int2526_handler(WORD mode, struct int25regs FAR * r)
r->ax = dskxfer(drv, blkno, buf, nblks, mode); r->ax = dskxfer(drv, blkno, buf, nblks, mode);
r->flags &= ~FLG_CARRY; CLEAR_CARRY_FLAG();
if (r->ax != 0) if (r->ax != 0)
{ {
r->flags |= FLG_CARRY; SET_CARRY_FLAG();
if (mode == DSKWRITEINT26) if (mode == DSKWRITEINT26)
setinvld(drv); setinvld(drv);
} }