Article View: net.micro.mac
Article #1564Re: Data space access from Lisa assembly
From: Brad Parker
Date: Thu, 30 May 1985 14:32
Date: Thu, 30 May 1985 14:32
24 lines
1899 bytes
1899 bytes
In article <2003@ut-sally.UUCP> brian@ut-sally.UUCP (Brian H. Powell) writes:
> Has anybody perfected the task of writing pure assembly language
>code for the Macintosh using the Lisa's assembler? (pure = not declaring
>all of your variables in Pascal and passing their address(es) to an assembly
>routine.) For those of you without Lisa's, the problem is that the assembler
>only believes in the program space. The Pascal compiler is the only program
>endowed with knowledge of the data space.
>Brian H. Powell brian@ut-sally.{ARPA,UUCP}
Once I discovered the ".main <module name>" directive, generating pure
assembly mac applications worked for me. I just declare variables as
.word, .long, .byte or whatever and do a "lea var, a0" or similar
to get it's address. This is foolish but it works. Pascal seems to
reference all of it's globals off a stack frame pointed to by a5. This
is not a bad strategy to adopt and certainly faster that the "lea"
method.
All in all, I'd switch to the MDS.
--
J Bradford Parker
uucp: seismo!harvard!gcc-bill!brad
"She said you know how to spell AUDACIOUSLY? I could tell I was in love...
You want to go to heaven? or would you rather not be saved?" - Lloyd Coal
Technical Details
Message-ID:
<260@gcc-bill.ARPA>Path:
arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!harvard!gcc-bill!bradReferences:
<2003@ut-sally.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site gcc-bill.ARPA Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!harvard!gcc-bill!brad From: brad@gcc-bill.ARPA (Brad Parker) Newsgroups: net.micro.mac Subject: Re: Data space access from Lisa assembly Message-ID: <260@gcc-bill.ARPA> Date: Thu, 30-May-85 10:32:31 EDT Article-I.D.: gcc-bill.260 Posted: Thu May 30 10:32:31 1985 Date-Received: Sat, 1-Jun-85 11:13:05 EDT References: <2003@ut-sally.UUCP> Reply-To: brad@gcc-bill.UUCP (Brad Parker) Distribution: net Organization: General Computer Company, Cambridge Ma (Home of the HyperDrive) Lines: 24