aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorMark Alexander <marka@cygnus>1998-01-05 23:43:30 +0000
committerMark Alexander <marka@cygnus>1998-01-05 23:43:30 +0000
commite0e0fc765e2732afd481fad4361a82a0e859c1b7 (patch)
treea1a4b2c2bd68a4ab4906cb5cde01d0bfa827b0ae /sim
parent352f9e9dc742f6c2bc0f4005c1a3d64c6095863e (diff)
downloadgdb-e0e0fc765e2732afd481fad4361a82a0e859c1b7.zip
gdb-e0e0fc765e2732afd481fad4361a82a0e859c1b7.tar.gz
gdb-e0e0fc765e2732afd481fad4361a82a0e859c1b7.tar.bz2
* interp.c (sim_monitor): Handle Densan monitor outbyte
and inbyte functions.
Diffstat (limited to 'sim')
-rw-r--r--sim/mips/ChangeLog5
-rw-r--r--sim/mips/interp.c8
2 files changed, 13 insertions, 0 deletions
diff --git a/sim/mips/ChangeLog b/sim/mips/ChangeLog
index 8c8f690..2cbb741 100644
--- a/sim/mips/ChangeLog
+++ b/sim/mips/ChangeLog
@@ -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).
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);