* interp.c (sim_monitor): Handle Densan monitor outbyte

and inbyte functions.
This commit is contained in:
Mark Alexander 1998-01-05 23:43:30 +00:00
parent 352f9e9dc7
commit e0e0fc765e
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Mon Jan 5 20:38:54 1998 Mark Alexander <marka@cygnus.com>
* interp.c (sim_monitor): Handle Densan monitor outbyte
and inbyte functions.
1997-12-29 Felix Lee <flee@cygnus.com>
* interp.c (sim_engine_run): msvc cpp barfs on #if (a==b!=c).

View File

@ -765,6 +765,13 @@ sim_monitor(sd,cia,reason)
break;
}
case 2: /* Densan monitor: char inbyte(int waitflag) */
{
if (A0 == 0) /* waitflag == NOWAIT */
V0 = (ut_reg)-1;
}
/* Drop through to case 11 */
case 11: /* char inbyte(void) */
{
char tmp;
@ -778,6 +785,7 @@ sim_monitor(sd,cia,reason)
break;
}
case 3: /* Densan monitor: void co(char chr) */
case 12: /* void outbyte(char chr) : write a byte to "stdout" */
{
char tmp = (char)(A0 & 0xFF);