home *** CD-ROM | disk | FTP | other *** search
- ; launch.asm by b.lesteven for Kernel 0.6 b.lesteven@wanadoo.fr
- ;
- ; Renamed to 'run' and ported to DoorsOS II by Xavier Vassor xvassor@mail.dotcom.fr
-
-
- include "doorsos.h"
- include "userlib.h"
-
- xdef _main
- xdef _ti89
- xdef _ti92plus
-
- _main:
-
- move.l doorsos::top_estack,a0
- subq.l #1,a0
- clr.w -(a7)
- move.l a0,-(a7)
- jsr doorsos::SymFindPtr
- addq.l #6,a7
-
- move.l a0,d0
- beq notfound
-
- move.w 12(a0),d0 ;handle du prog dans d0
- move.w d0,-(a7)
- jsr userlib::exec
- addq.l #2,a7
- rts
-
- notfound:
- pea pastrouve(pc)
- jsr doorsos::ST_helpMsg
-
- clr.l (a7)
- clr.w -(a7)
- jsr doorsos::GKeyIn
- addq.L #6,a7
-
- rts
-
- pastrouve dc.b "Program not found",0
-
- end