Re: A86: run


[Prev][Next][Index][Thread]

Re: A86: run




At 15:54 1998-10-10 -0400, you wrote:
>> how do i run another program from an asm program?
>
>	ld hl,progname
>	rst 20h				;move program name to op1
>	call _exec_assembly		;execute program
>
>	...other code...
>
>progname:
>	.db $12,8,"BlahBlah"

I think I've said this before, but you do NOT need to specify the
variable type ($12). This would save one, maybe precious, byte:

 ld hl,progname-1
 rst 20h
 call _exec_assembly

progname:
 .db 8,"BlahBlah"

At least, you never had to do that on the TI-85, so I assume it's
not necessary on the 86 as well.

--
Real name:     Jimmy Mårdell
Email:         mailto:yarin@acc.umu.se
Homepage:      http://www.acc.umu.se/~yarin/

Icarus Productions homepage: http://icarus.ganymed.org/


References: