home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / atari / st / tech / 4741 < prev    next >
Encoding:
Text File  |  1992-09-10  |  1.4 KB  |  36 lines

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