- added getchar()

- minor bugfixes
Committed on the Free edition of March Hare Software CVSNT Server.
Upgrade to CVS Suite for more features and support:
http://march-hare.com/cvsnt/


git-svn-id: http://moon:8086/svn/vhdl/trunk@627 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
2009-11-06 21:22:12 +00:00
parent 4a5d55bd7e
commit f5cfe810ef
2 changed files with 10 additions and 3 deletions
+8 -3
View File
@@ -588,6 +588,11 @@ void _putchar(UINT32 port, char c)
}
}
char _getchar(void)
{
return readchar(GetPort(0));
}
void _exit (int exitcode)
{
fflush(stdout);
@@ -786,7 +791,7 @@ int sputs(char *pStr)
start = pStr;
while(*pStr)
_putchar(0, *(pStr++));
_putchar(GetPort(0), *(pStr++));
return pStr - start;
}
@@ -806,7 +811,7 @@ void print_byte(char byte)
else
c = nibble + 'A' - 10;
_putchar(0, c);
_putchar(GetPort(0), c);
}
}
@@ -880,7 +885,7 @@ void memdump(UINT8 *pBuf, int print_offset_only, int num_bytes_per_row, int len)
if((c < 0x20) || (c > 0x7F))
c = '.';
_putchar(0, c);
_putchar(GetPort(0), c);
cnt_asc--;
}
else