summaryrefslogtreecommitdiff
path: root/emma.c
diff options
context:
space:
mode:
Diffstat (limited to 'emma.c')
-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);