1
0
mirror of https://github.com/prirun/p50em.git synced 2026-05-03 14:58:50 +00:00

optimize with Shark, dispatch.h & label arrays, inhcount

changed generics from switch table to indirect jumps
removed redundant test of inhcount
beginning of a long series of optimizations with Shark tool
This commit is contained in:
Jim
2007-08-16 00:00:00 -04:00
parent 5bd57fb92a
commit 24e7bfaea0
4 changed files with 2823 additions and 2510 deletions

View File

@@ -454,10 +454,10 @@ readasr:
crs[A] = 0;
crs[A] = crs[A] | ch;
TRACE(T_INST, " character read=%o: %c\n", crs[A], crs[A] & 0x7f);
if (ch != 015) { /* log all except carriage returns */
if (!(terminfo.c_lflag & ECHO) && ch != 015) /* log all except CR */
fputc(ch, conslog);
fflush(conslog); /* immediately flush typing echos */
}
fflush(conslog); /* immediately flush when typing */
fflush(tracefile);
IOSKIP;
} else {
printf("Unexpected error reading from tty, n=%d\n", n);