home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / amiga / programm / 18292 < prev    next >
Encoding:
Text File  |  1993-01-07  |  1.9 KB  |  48 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!math.fu-berlin.de!news.th-darmstadt.de!rbg.informatik.th-darmstadt.de!misar
  3. From: misar@rbg.informatik.th-darmstadt.de (Walter Misar)
  4. Subject: Re: Assembler help needed
  5. Sender: news@news.th-darmstadt.de (The News System)
  6. Message-ID: <1993Jan7.174455@rbg.informatik.th-darmstadt.de>
  7. Date: Thu, 7 Jan 1993 16:44:55 GMT
  8. References:  <C0HMzp.Dsv@newcastle.ac.uk>
  9. Nntp-Posting-Host: rbhp60.rbg.informatik.th-darmstadt.de
  10. Organization: TH Darmstadt
  11. Lines: 35
  12.  
  13. In article <C0HMzp.Dsv@newcastle.ac.uk>, D.J.Miller@newcastle.ac.uk (Dave Miller) writes:
  14. > Greetings :)
  15. >   having just bought Stefan Ditrich's book 'Amiga Assembly Language' (or
  16. > whatever it's called), I'm a bit miffed at his constant use of AssemPro.
  17. > Throughout the entire book he make use of macros and commands which appear
  18. > unique to this assembler. For example in an intuition based program 
  19. > which shows off gadgets/menus/windows etc....there is use made of a command:
  20. >     blk.w  500
  21. > and two macros
  22. >      INIT_AMIGA
  23. >     EXIT_AMIGA
  24. > blk appears in various forms throughout the text (blk 9,0 being another one)
  25. > has anyone got any idea what these are on about so I can set about replacing
  26. > them with code that Devpac2 and/or A68k will understand. 
  27. > I'm assuming that blk is some fancy version of the link command as it is used
  28. > to reserve stack space for menus (according to the comments) however, direct 
  29. > substitution causes a crash.
  30.  
  31. blk.w 500 is used to declare a space of 500 bytes (I guess initialized with
  32. 0's ). Use ds.w 500 instead. A blk.w 500,10 should be dcb.w 500,10 (500
  33. words, all value 10). But the macros leave me clueless, sorry.
  34.  
  35. -- 
  36. Walter Misar                                | It is impossible to enjoy
  37. misar@rbg.informatik.th-darmstadt.de        | idling thoroughly unless
  38.                                             | one has plenty of work to do.
  39.