1
0
mirror of https://github.com/prirun/p50em.git synced 2026-01-26 19:51:58 +00:00

hacks for executing R-mode code in registers

more PX work
reordered instructions (again!)
This commit is contained in:
Jim
2005-09-06 00:00:00 -04:00
parent c6a52800f0
commit 34e057b7b7
2 changed files with 370 additions and 580 deletions

941
em.c

File diff suppressed because it is too large Load Diff

View File

@@ -223,17 +223,13 @@ void devasr (short class, short func, short device) {
case 1:
if (T_INST) fprintf(stderr," SKS '%02o%02o\n", func, device);
if (needflush) {
fflush(stdout);
needflush = 0;
devpoll[device] = 0;
}
if (func == 7) { /* skip if received a char */
timeout.tv_sec = 0;
#if 0
timeout.tv_usec = 100000;
#else
timeout.tv_usec = 1;
timeout.tv_usec = 0;
#endif
if (select(1, &readfds, NULL, NULL, &timeout) == 1)
IOSKIP;
@@ -327,6 +323,9 @@ readasr:
IOSKIP;
} else if (04 <= func && func <= 07) { /* write control register 1/2 */
IOSKIP;
} else if (func == 013) {
/* NOTE: does this in rev 20 on settime command (Option A maybe?) */
IOSKIP;
} else if (func == 017) {
/* NOTE: 9950 does this in rev 20, others don't */
IOSKIP;