[A83] Re: Installer program


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

[A83] Re: Installer program



Only if you run the code after the second org (when it is not placed at
9327h). All org does is set the PC so that if you have any absolute
addresses, they are accurate. For instance a jp to a label within the
code, the jump is to an absolute address and that address of the label
is relative to what the org is and how much stuff is before it.

So, as long as you do your includes _last_ and never run any of that
code when it is displaced (like it is naturally in the installer or
whatever you are making), then you are fine.

--
Scott Dial
scott@scottdial.com
AIM GeekMug : ICQ# 3608935


-----Original Message-----
From: assembly-83-bounce@lists.ticalc.org
[mailto:assembly-83-bounce@lists.ticalc.org] On Behalf Of
robvanwijk@gmx.net
Sent: Monday, August 11, 2003 4:35 PM
To: assembly-83@lists.ticalc.org
Subject: [A83] Re: Installer program

> 
> Thanks, that works great.  I was just worried about the assembler
trying
> to write multiple pieces of code into the same location in the object
file
> (i.e. .org 9327h appears three times in my finished installer).
> 

If you type the following in your source file (either directly, or as
the
result
of includes)

.org 9327h
.org 9327h

that won't cause problems. Be careful though that you don't get stuff
like

.org 9327h
 xor a
.org 9327h

that'll thoroughly mess things up.

Rob van Wijk

-- 
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
--------------------------------------------------
1. GMX TopMail - Platz 1 und Testsieger!
2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8.
e-Post





References: