[A83] Re: Running external ASM programs from within an ASM program...


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

[A83] Re: Running external ASM programs from within an ASM program...




well only if your program uses relative addressing.  if you use any jp or
call instructions then your assembler needs to be guaranteed that the
program will start at a specific location.  by the way, don't you want to
use chkfindsym for program vars?  findsym doesn't find program vars, only
just about everything else.

brandon sterner

----- Original Message -----
From: "Thomas Lutz" <tlutz@stevens-tech.edu>
To: <assembly-83@lists.ticalc.org>
Sent: Sunday, December 16, 2001 10:58 PM
Subject: [A83] Running external ASM programs from within an ASM program...


> Can this be done???
>
> ld hl,MyProg
> rst rMOV9TOOP1
> rst rFINDSYM
> ret c
>
> inc de
> inc de
> push de
> ret
>
> I'm assuming there may be a few bytes acting as a header, but this is
> the concept....point the PC to the data of another assembly program and
> just run it....will it work?
>
> Thomas Lutz
> Stevens Institute of Technology
>
>
>
>
>





Follow-Ups: References: