1 /* Copyright © 1995-2001, The AROS Development Team. All rights reserved.
6 * Handle trap 1 function calls
7 * Since POSE seems to intercept all other traps except for trap #1
8 * I need to multiplex the trap calls here.
12 .globl _sys_trap1_handler
16 lea.l jumptable,%a0 // get the address of the jumptable
17 move.l (%a0,%d7),-(%ssp) // save the address of the function onto the stack
22 // move.l %a0,-8(%ssp) // save %a0 onto the stack
23 // lea.l jumptable,%a0 // get the address of the jumptable
24 // move.l (%a0,%d7),-(%ssp) // save the address of the function onto the stack
25 // move.l -4(%sp),%a0 // restore %a0
26 // rts // call the function
31 dc.l _sys_dispatch // d7 = 0
32 dc.l _sys_trap1_SetSR // d7 = 4
33 dc.l _sys_trap1_Supervisor // d7 = 8
34 dc.l _sys_trap1_SuperState // d7 = 12