[A89] Re: Traps...
[Prev][Next][Index][Thread]
[A89] Re: Traps...
> Actually, it lists Trap #$B as being "Print 'Trap 11' and Freeze," so that
> specific trap information must be outdated. I know that newer versions of
> TIOS have made use of some previously unused vectors; for instance, 2.05
> uses the Line 1111 Emulator vector to do ROM Calls (to my knowledge, only TI
> Flash Studio - and, therefore, apps - use this trick).
just remembered something... I was going to suggest that we place this macro in
os.h for that purpose... I don't know how to get tigcc to push arguments on the
stack and use this method, but for assembly language it works well... In larger
programs, it might be beneficial to use especially if one were to write a custom
$F routine so the code would work on all ams's
;line 1111 emulator rom call
ROM_CALL3 MACRO
dc.w $F800+\1
ENDM
and
;for throwing errors
ERROR_THROW MACRO
dc.w $A000+\1
ENDM
I think that the $F emulator is available on ams 2.04 and above... and the $A
emulator is on all of the ams's
Greg
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
References: