netcall debug 2nd
This commit is contained in:
19
netcall.c
19
netcall.c
@@ -78,13 +78,22 @@ int redir_device_drive(int devicetyp, uint8 *devname, uint8 *remotename)
|
|||||||
regs.x.di = FP_OFF(lremotename);
|
regs.x.di = FP_OFF(lremotename);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(__WATCOMC__)
|
||||||
|
fprintf(stderr,
|
||||||
|
"REDIR in: ax=%04x bx=%04x cx=%04x ds:si=%04x:%04x es:di=%04x:%04x dev='%s' remote='%s'\n",
|
||||||
|
regs.x.ax, regs.x.bx, regs.x.cx,
|
||||||
|
sregs.ds, regs.x.si, sregs.es, regs.x.di,
|
||||||
|
ldevname, devicetyp > -1 ? lremotename : "");
|
||||||
|
#endif
|
||||||
|
|
||||||
intdosx(®s, ®s, &sregs);
|
intdosx(®s, ®s, &sregs);
|
||||||
|
|
||||||
/*
|
#if defined(__WATCOMC__)
|
||||||
* Return the actual DOS/redirector error code from AX when carry is set.
|
fprintf(stderr,
|
||||||
* The old code returned the intdosx() function result. With OpenWatcom
|
"REDIR out: cf=%u ax=%04x bx=%04x cx=%04x dx=%04x\n",
|
||||||
* this can hide which redirector error happened.
|
regs.x.cflag, regs.x.ax, regs.x.bx, regs.x.cx, regs.x.dx);
|
||||||
*/
|
#endif
|
||||||
|
|
||||||
return(regs.x.cflag ? -(int)regs.x.ax : 0);
|
return(regs.x.cflag ? -(int)regs.x.ax : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user