On 04/25/14 10:43, greg-king5 wrote:
>
> In libsrc/c128/mouseref.s:
>
> > @@ -21,3 +23,70 @@ mouse_libref:                   ; generic label for mouse-kernel
> >  ;
> >  _pen_adjuster:
> >          .addr   $0000
> > +        .addr   IRQStub2
> > +callback:                       ; callback into mouse driver after ROM IRQ handler has been run
> > +        .addr   $0000           ; (filled in by mouse driver)
> > +jmp_rom_hdlr:                   ; "trampoline" to jump to ROM IRQ handler
> > +        .addr   $0000           ; (filled in by mouse driver)
>
> Is there a reason why the code stuffs those vectors onto the stack, 
> and "returns" to them, instead of making them |jmp| instructions, and 
> jumping directly to them?
>


I would need some kind of "LOWDATA" segment otherwise. DATA might not be 
accessible because of the MMU configuration at this point.