diff options
author | Ian C <ianc@noddybox.co.uk> | 2006-09-03 22:45:39 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2006-09-03 22:45:39 +0000 |
commit | 324d0e882a41b3ebcd231790d45fc03f285a7a8b (patch) | |
tree | 3bda4b6c3ca827b76ff9ae5f818ffac4e3ea27fc | |
parent | 5ae0f154bd925c050e37b572ea30b51b09e8b569 (diff) |
Fixed output of OUT text to the log file.
-rw-r--r-- | emma.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |