
!
je ne comprends pas je m'amusais encore à faire iéch ma TI avec un programme à la con
comme sur ma TI je ne veux pas de Kernel donc je le fais en nostub!
[...]
voici le code essayé de le compilé en nostub et en mode Kernel et vous verrez qu'il ne passe pas en nostub!
je le compile avec TIGCC
include "Os.h"
xdef _nostub
xdef _main
xdef _ti92plus
include "rout_graph.h"
;;;;;;;;;;;; MACROS ;;;;;;;;;;;;;;;
clr_scr macro
movem.l d0/a0,-(a7)
move.w 1,d0
lea 2,a0
bsr _clr_scr
movem.l (a7)+,d0/a0
endm
copy_mem macro
movem.l d0/a0-a1,-(a7)
move.w 1,d0
lea 2,a0
lea 3,a1
bsr _copy_mem
movem.l (a7)+,d0/a0-a1
endm
find_matrice macro
movem.l d0-d2/a0,-(a7)
move.w 1,d0
move.w 2,d1
lea 3,a0
move.w 4,d2
;;;;;;;;;;;;;;;;;;;;;;;;;;;
mulu.w d2,d1
add.w d1,d0
lsl.w #1,d0
move.w 0(a0,d0.w),d7
;;;;;;;;;;;;;;;;;;;;;;;;;;;
;d7=word recherché!
movem.l (a7)+,d0-d2/a0
endm
find_pixel macro
movem.l d0-d2/a0,-(a7)
move.w 1,d0
move.w 2,d1
lea 3,a0
bsr _find_pixel
;Output(s)
;d7 = bit concerné
;a6 = octet concerné
movem.l (a7)+,d0-d2/a0
endm
_main:
copy_mem #959,$4c00,buffer
clr_scr #959,$4c00
exit:
copy_mem #959,buffer,$4c00
rts
;;;;;;;;;;;; lABELS ;;;;;;;;;;;;;;;
_copy_mem move.l (a0)+,(a1)+
dbf d0,_copy_mem
rts
_clr_scr clr.l (a0)+
dbf d0,_clr_scr
rts
;;;;;;;;;;;;;;DONNEES;;;;;;;;;;;;;;;;
buffer ds.l 960
end

il est pas buggé quand même c'est pas ça
