; file: EXECST.ASM     by George Walker              July 1984
;                         Columbia, Md.
;
; This is an autostart program for the Osborne Executive 1.
; Replace "FILENAME" (must contain trailing spaces as required
; for total of 8 characters) with the .COM filename of your
; choice and assemble with MAC.
; See EXECST.SUB for easy auto implementation.
;
BDOS:	equ	5		;jump vector to BDOS
DBUFF:	equ	80H           	;default buffer address
 	org	100H         	;transient program area start
;
	lxi	b,9           	;BC = filename length + 1.
	lxi	h,filename    	;point to filename then
	lxi	d,DBUFF       	;  move it to default buffer
	db	0EDH,0B0H ;LDIR    (Z80 block move instruction).
	mvi	c,47          	;BDOS function number for
	call	BDOS		;  chain to program.
;
filename:
	db	'FILENAME'    	;name of .COM file to autostart
	db	0          	;null char must follow filename
				;          ----       
	end
ENAME'    	;name of .COM file to autostart
	db	0          	;null char must fo