summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2006-09-03 22:45:39 +0000
committerIan C <ianc@noddybox.co.uk>2006-09-03 22:45:39 +0000
commit324d0e882a41b3ebcd231790d45fc03f285a7a8b (patch)
tree3bda4b6c3ca827b76ff9ae5f818ffac4e3ea27fc
parent5ae0f154bd925c050e37b572ea30b51b09e8b569 (diff)
Fixed output of OUT text to the log file.
-rw-r--r--emma.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/emma.c b/emma.c
index ce2e113..8737d87 100644
--- a/emma.c
+++ b/emma.c
@@ -1005,7 +1005,7 @@ static void WritePort(Z80 *z80, Z80Word addr, Z80Byte val)
switch(addr&0xff)
{
case 0x80:
- putchar(val);
+ Log("%c",val);
fflush(stdout);
break;
@@ -1018,7 +1018,7 @@ static void WritePort(Z80 *z80, Z80Word addr, Z80Byte val)
while(mem[s.DE]!='$')
{
if (isspace(mem[s.DE]) || isprint(mem[s.DE]))
- putchar(mem[s.DE]);
+ Log("%c",mem[s.DE]);
s.DE++;
}
@@ -1028,7 +1028,7 @@ static void WritePort(Z80 *z80, Z80Word addr, Z80Byte val)
case 0x83:
while(mem[s.DE])
{
- putchar(mem[s.DE]);
+ Log("%c",mem[s.DE]);
s.DE++;
}
fflush(stdout);