home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.atari.st.tech
- Path: sparky!uunet!spool.mu.edu!agate!usenet.ins.cwru.edu!news.csuohio.edu!neumann.cba.csuohio.edu!max
- From: max@neumann.cba.csuohio.edu (Max Polk)
- Subject: Turbo assembler (turboass.prg) question
- Message-ID: <1992Sep11.011628.11774@news.csuohio.edu>
- Sender: news@news.csuohio.edu (USENET News System)
- Organization: Cleveland State University, Cleveland, Ohio
- Date: Fri, 11 Sep 1992 01:16:28 GMT
- Lines: 25
-
- The atari.archive.umich.edu program called "turboass.prg" is a nice
- assembler for the ST -- but written in German. After figuring out
- how much of it worked by trial and error and making educated guesses
- about German words, I still need to know one important thing:
-
- How can I create linkable *.o files that work with C-language
- *.o files?
-
- I managed to create the *.o file, but it had an incorrect format.
- My little initialization code called "main", and I was able to declare
- "main" as a global long. But the code which did:
-
- jsr main
-
- was compiled into:
-
- jsr 0x4L
-
- and it basically dropped "main" altogether so that the linker perceived
- the subroutine as being located at the absolute memory location 0x4L !!
- The turbo-assembler took my declaration of "main" as an acceptable external
- reference; the code assembled without error; but then didn't bother to
- signify that just at that point in the code (where it called main), the
- address needed to be fixed up to point to wherever the linker ended up
- placing "main."
-