home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / amiga / programm / 11752 < prev    next >
Encoding:
Internet Message Format  |  1992-07-28  |  1.5 KB

  1. Path: sparky!uunet!olivea!isc-br!bunker!nuconvex!starpt!doiron
  2. From: doiron@starpt.UUCP (Glenn Doiron)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Library Call?
  5. Message-ID: <doiron.06xj@starpt.UUCP>
  6. Date: 25 Jul 92 02:59:23 GMT
  7. References: <sims.711374458@sauron.msfc.nasa.gov> <dvaz.02vz@dvtown.UUCP>
  8. Organization: 68K Software Development
  9. Lines: 36
  10. X-NewsSoftware: Amiga GRn V1.16b 5/26/92 by Mikes Schwartz & Smith
  11.  
  12. In article <dvaz.02vz@dvtown.UUCP> dvaz@dvtown.UUCP (David Vazquez) writes:
  13. >In article <sims.711374458@sauron.msfc.nasa.gov> sims@sauron.msfc.nasa.gov (Herb Sims) writes:
  14. >>I am in the process of writing an assembly language program and I seem to have
  15. >>a small problem.  When ever I do a BLINK the linker finds a call to _SysBase
  16. >>in the amiga.library library.    Where/What can I get to keep this error from
  17. >>happening?
  18. >>
  19. >>Thanks in advance
  20. >>Herb
  21. >>sims@sauron.msfc.nasa.gov
  22. >>
  23. >
  24. >That's not a call, it's an address.  amiga.lib needs _SysBase (address 4)
  25. >for it's functions.  To make _SysBase available do this.
  26. >
  27. >_SysBase   EQU     4
  28. >       XDEF  _SysBase
  29.  
  30. However, a far better thing to do is:
  31.  
  32.  XDEF _SysBase
  33. ...
  34.  move.l 4,_SysBase
  35. ...
  36.  SECTION myprogram,data
  37. _SysBase:  dc.l 0
  38.  
  39. Which will move the exec pointer into fastram on machines which have it,
  40. avoiding a chip-mem syncup delay on those machines.
  41.  
  42. Glenn Doiron
  43. --
  44. Amiga UUCP+
  45. Origin:  uunet!starpt!doiron     (Organization:68K Software Development)
  46.          BIX: gdoiron
  47. ** Not enough memory to perform requested operation.  Add 4 megs and retry.
  48.