[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...




So something like this might work...??



ld hl,Prog
rst rMOV9TOOP1
B_CALL ChkFindSym
Ret c
Inc de
Inc de
Push de
Push de
ret




Here's the program I'm running...

Ld (ProgPointer),de

<code>
<more code>
...
..
call (ProgPointer)+Routine1
ret


Routine1:
	<code>
	ret


ProgPointer: db 0,0




Thomas Lutz
Stevens Institute of Technology


-----Original Message-----
From: assembly-83-bounce@lists.ticalc.org
[mailto:assembly-83-bounce@lists.ticalc.org] On Behalf Of Brandon
Sterner
Sent: Sunday, December 16, 2001 11:07 PM
To: assembly-83@lists.ticalc.org
Subject: [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
>
>
>
>
>








References: