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