- 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:
@@ -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
|
||||
|
||||
@@ -148,6 +148,8 @@ void print_word(int word);
|
||||
void _exit (int exitcode);
|
||||
void sleep(unsigned ms);
|
||||
|
||||
char _getch(void);
|
||||
|
||||
void PrintBuffer8(UINT8 *pBuf, int nbpr, int len);
|
||||
void memdump(UINT8 *pBuf, int print_offset_only, int num_bytes_per_row, int len);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user