* interp.c (sim_monitor): Handle Densan monitor outbyte
and inbyte functions.
This commit is contained in:
parent
352f9e9dc7
commit
e0e0fc765e
2 changed files with 13 additions and 0 deletions
|
@ -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).
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue