aboutsummaryrefslogtreecommitdiff
path: root/sim/mips/interp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/mips/interp.c')
-rw-r--r--sim/mips/interp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sim/mips/interp.c b/sim/mips/interp.c
index 59de19b..fe17645 100644
--- a/sim/mips/interp.c
+++ b/sim/mips/interp.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);