
je dois surement mal m'y prendre ...
INT_HANDLER save_int;
save_int = GetIntVec (INT_VEC_MANUAL_RESET);
SetIntVec (INT_VEC_MANUAL_RESET, DUMMY_HANDLER);
...
SetIntVec (INT_VEC_MANUAL_RESET, save_int);
include "OS.h" xdef _nostub xdef _ti89 xdef _ti92plus pea (a5) pea (a2) move.l ($c8).w,a5 move.w #$700,d0 trap #1 move.l #$40078,a2 cmp.l #$200000,(a2) bcs.s Uninstall Install: pea (6).w move.l HeapAllocPtr*4(a5),a0 jsr (a0) move.l (a2),(a0)+ ;ancien vecteur move.w #$4e73,(a0) ;rte move.l a0,(a2) pea InstMsg(pc) Quit: move.l ST_helpMsg*4(a5),a0 jsr (a0) addq.w #8,a7 moveq #0,d0 trap #1 move.l (a7)+,a2 move.l (a7)+,a5 rts Uninstall: move.l (a2),a0 pea (a0) move.l -4(a0),(a2) ;ancien vecteur move.l HeapFreePtr*4(a5),a0 pea UninstMsg(pc) bra.s Quit UninstMsg dc.b "un" InstMsg dc.b "installed.",0
Thibaut a écrit :
L'intérêt est de lutter contre les camarades farceurs ou les profs méfiants