From 0953ce3b59e1fcde00490e4c0401ca78d617d3ff Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Mon, 25 Nov 2002 15:03:23 +0000 Subject: [PATCH] cr lf only gets expanded if there is room for it. and int 21: 06 return al=0 if no key Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@537 --- src/dos/dev_con.h | 2 +- src/dos/dos.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dos/dev_con.h b/src/dos/dev_con.h index 0e077e67..90f4d0f4 100644 --- a/src/dos/dev_con.h +++ b/src/dos/dev_con.h @@ -42,7 +42,7 @@ bool device_CON::Read(Bit8u * data,Bit16u * size) { case 13: data[count++]=0x0D; if (*size>count) data[count++]=0x0A; - else cache=0x0A; + //else cache=0x0A; // it's only expanded if there is room for it. *size=count; reg_ax=oldax; return true; diff --git a/src/dos/dos.cpp b/src/dos/dos.cpp index 5df2a3ab..b65ad676 100644 --- a/src/dos/dos.cpp +++ b/src/dos/dos.cpp @@ -68,6 +68,7 @@ static Bitu DOS_21Handler(void) { { //TODO Make this better according to standards if (!DOS_GetSTDINStatus()) { + reg_al=0; CALLBACK_SZF(true); break; }