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




That sounds like it would work....of course if I ran it manually, it
would probably overwrite a bunch of important crap and crash my calc
right? I know the system interrupt routine is at 0038h....I'm guessing
there's a lot of other stuff there too.

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 Patai Gergely
Sent: Monday, December 17, 2001 3:17 AM
To: assembly-83@lists.ticalc.org
Subject: [A83] Re: Running external ASM programs from within an ASM
program...


I forgot to mention...

If it's really important to do this, you can set up
the main program to be able to run specific external
subprograms the following way:

The subprogram must be compiled with .org 0 at
the beginning, and you have to make a list of all
the absolute user RAM accesses in it (call [not
ROM calls, of course], jp, variables, SMC...).
Before calling the program the runner code first
adds the current address of the prog to these values,
and after returning it subtracts this address from
everywhere to restore the whole thing.

I guess that should do.

PG









Follow-Ups: References: