From 1a6a92a423f332031a6b70c005df313aebb8be64 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Tue, 27 Jun 2006 07:00:56 +0000 Subject: [PATCH] Fix Set Memory. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2661 --- src/debug/debug.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/debug/debug.cpp b/src/debug/debug.cpp index c52a1671..977f27c3 100644 --- a/src/debug/debug.cpp +++ b/src/debug/debug.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: debug.cpp,v 1.82 2006-06-22 08:34:38 qbix79 Exp $ */ +/* $Id: debug.cpp,v 1.83 2006-06-27 07:00:56 qbix79 Exp $ */ #include "dosbox.h" #if C_DEBUG @@ -1027,7 +1027,8 @@ bool ParseCommand(char* str) { while (*found) { while (*found==' ') found++; if (*found) { - Bit8u value = (Bit8u)GetHexValue(found,found); found++; + Bit8u value = (Bit8u)GetHexValue(found,found); + if(*found) found++; mem_writeb(GetAddress(seg,ofs+count),value); count++; }