[A83] Re: Multiple Source files in ZDS
[Prev][Next][Index][Thread]
[A83] Re: Multiple Source files in ZDS
no.
the compiler parses an include statement as if the code inside the include
file occured at that point in the progarm.
ex.
main.asm
inc a
ld (hl),a
#include "addAB.asm"
ret
.end
; end
addAB.asm
add a,b
; end
this would parse the file as follows:
inc a
ld (hl),a
add a,b
-harper
At 11:29 PM 1/10/02 -0500, you wrote:
>So how would the order of execution go, or should the program by design
>not go directly to another source file...It should probably either Jump
>there or Call something in there right?
>
>-----Original Message-----
>From: assembly-83-bounce@lists.ticalc.org
>[mailto:assembly-83-bounce@lists.ticalc.org] On Behalf Of R. Harper
>Maddox
>Sent: Thursday, January 10, 2002 11:18 PM
>To: assembly-83@lists.ticalc.org
>Subject: [A83] Re: Multiple Source files in ZDS
>
>
>break up the file into distinct parts, all of which are in the same
>directory. You should have a main file "<program name>.asm" and then
>include all of the other parts of the game.
>
> #include "myfile.asm"
>
>-harper
>
>At 11:12 PM 1/10/02 -0500, you wrote:
> >How would I use multiple source files for developing assembly programs
> >in ZDS? It gets quite confusing when I have all 3000 lines in one
> >document! Thanks in advance.
> >
> >Tom
Follow-Ups:
References: