|
|
1.1 root 1:
2: /* d0.b = exception number, a0 = handler. */
3: static void SetExceptionHandler ()
4: {
5: printf ("Setting exception handler %d to $%x\n", GetReg (0), GetReg (8));
6: /* only 32 handlers */
7: exception_handlers[GetReg(0) & 31] = GetReg (8);
8: }
9:
10: static void PutChar ()
11: {
12: putchar (GetReg (0));
13: }
14:
15: HOSTCALL hcalls [] = {
16: &SetExceptionHandler,
17: &PutChar,
18: NULL, /* 0x50 */
19: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.