;********************************************* ;********************************************* ; ; External command for Davex ; ; setstart -- examine or set startup path of ; a SYS file ; ;********************************************* ; ; Converted to MPW IIgs 21-Sep-92 DAL ; ;********************************************* .include "Common/2/Globals2.asm" .include "Common/2/Apple.Globals2.asm" .include "Common/2/Mli.globals2.asm" .include "Common/Macros.asm" .segment "CODE_9000" orgadr = $9000 ;change as necessary (end below $B000) ; org orgadr myversion = $10 minversion = $10 ;********************************************* rts .byte $ee,$ee .byte myversion,minversion .byte %00000000 ;hardware req .addr descr .addr orgadr .addr start .byte 0,0,0,0 ; parameters here .byte 0,t_wildpath asc "s" .byte t_string .byte 0,0 descr: pstr "examine or set startup path of a SYS file" ;********************************************* ; dsect ; org xczpage ;32 locations path = xczpage ;ds 2 newpath = path+2 ;ds 2 ; dend ; start: sta info_path+1 sty info_path sta open_path+1 sty open_path sta path+1 sty path ldy #0 lda (path),y bne gave_path jsr xmess .byte cr asc "*** usage: setstart [-s ]" .byte cr,0 rts gave_path: jsr read_some jsr chk_buff ;returns buffer size in A bne has_buff jsr xmess .byte cr asc "*** SYS file does not have a startup buffer" .byte cr,0 jmp xerr ; has_buff: lda #'s' jsr xgetparm_ch bcs just_looking sta newpath+1 sty newpath jsr SetNewPath just_looking: jsr xmess .byte cr asc "Startup path is " .byte '"' .byte 0 lda #>(pagebuff+6) ldy #