1
0
Fork 0

argh, committed good file...

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1313
This commit is contained in:
Ulf Wohlers 2003-10-13 22:01:07 +00:00
parent 55591a56da
commit 5e13e5c0e4
12 changed files with 32 additions and 227 deletions

View file

@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: dos.cpp,v 1.54 2003-10-13 19:44:46 finsterr Exp $ */
/* $Id: dos.cpp,v 1.55 2003-10-13 21:56:25 finsterr Exp $ */
#include <stdio.h>
#include <stdlib.h>
@ -38,8 +38,6 @@ Bit8u dos_copybuf[0x10000];
static Bitu call_20,call_21,call_25,call_26,call_27,call_28,call_29;
static Bitu call_casemap;
void DEBUG_HeavyWriteLogInstruction(void);
void DOS_SetError(Bit16u code) {
dos.errorcode=code;
}
@ -50,8 +48,6 @@ static Bitu DOS_21Handler(void) {
DOS_PSP psp(dos.psp);
psp.SetStack(RealMake(SegValue(ss),reg_sp));
LOG(LOG_MISC,LOG_ERROR)("DOS: Call %04X %04X %04X %04X",reg_ax,reg_bx,reg_cx,reg_dx);
char name1[DOSNAMEBUF+1];
char name2[DOSNAMEBUF+1];
switch (reg_ah) {
@ -274,8 +270,6 @@ static Bitu DOS_21Handler(void) {
dos.dta=RealMakeSeg(ds,reg_dx);
DOS_PSP psp(dos.psp);
psp.SetDTA(dos.dta);
DOS_DTA dta(dos.dta);
LOG(LOG_MISC,LOG_ERROR)("DOS:1A:Set DTA %04X:%04X (ID:%04X)",SegValue(ds),reg_dx,dta.GetDirID());
}
break;
case 0x25: /* Set Interrupt Vector */
@ -327,7 +321,6 @@ static Bitu DOS_21Handler(void) {
case 0x2f: /* Get Disk Transfer Area */
SegSet16(es,RealSeg(dos.dta));
reg_bx=RealOff(dos.dta);
LOG(LOG_DOSMISC,LOG_ERROR)("DOS:2F:Get DTA: %04X:%04X",SegValue(es),reg_bx);
break;
case 0x30: /* Get DOS Version */
if (reg_al==0) reg_bh=0xFF; /* Fake Microsoft DOS */
@ -338,7 +331,6 @@ static Bitu DOS_21Handler(void) {
case 0x31: /* Terminate and stay resident */
//TODO First get normal files executing
// Important: This service does not set the carry flag!
LOG(LOG_DOSMISC,LOG_ERROR)("DOS:Terminated.");
DOS_ResizeMemory(dos.psp,&reg_dx);
DOS_Terminate(true);
dos.return_code=reg_al;
@ -535,7 +527,7 @@ static Bitu DOS_21Handler(void) {
break;
case 0x01: /* Set */
LOG(LOG_MISC,LOG_ERROR)("DOS:Set File Attributes for %s not supported",name1);
CALLBACK_SCF(true);
CALLBACK_SCF(false);
break;
default:
LOG(LOG_MISC,LOG_ERROR)("DOS:0x43:Illegal subfunction %2X",reg_al);
@ -626,8 +618,6 @@ static Bitu DOS_21Handler(void) {
case 0x4c: /* EXIT Terminate with return code */
{
DEBUG_HeavyWriteLogInstruction();
LOG(LOG_DOSMISC,LOG_ERROR)("DOS:Terminated 0x4C.");
if (DOS_Terminate(false)) {
/* This can't ever return false normally */
} else {

View file

@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: dos_ioctl.cpp,v 1.14 2003-10-13 19:44:46 finsterr Exp $ */
/* $Id: dos_ioctl.cpp,v 1.15 2003-10-13 21:56:25 finsterr Exp $ */
#include <string.h>
#include "dosbox.h"
@ -28,7 +28,6 @@
bool DOS_IOCTL(void) {
Bitu handle;Bit8u drive;
if (reg_al<8) { /* call 0-7 use a file handle */
Bitu what = reg_bx;
handle=RealHandle(reg_bx);
if (handle>=DOS_FILES) {
DOS_SetError(DOSERR_INVALID_HANDLE);