Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Benoit0123 Newsgroups: comp.sys.apple2.programmer Subject: Re: Something weird with Merlin 8 (2.48 for DOS 3.3/2.58 for =?UTF-8?B?UHJvRE9TKT8=?= Date: Mon, 31 Jul 2017 16:43:53 -0000 (UTC) Organization: Mac GUI Lines: 35 Message-ID: References: <273d4c75-8b83-4539-87ac-e83ce38ada16@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 31 Jul 2017 16:43:53 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="ce03014311eb44f05dab64390803d62b"; logging-data="6343"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18pUOsUPBElvstE9pGFYEOo" User-Agent: Mac GUI Usenet In-Reply-To: <273d4c75-8b83-4539-87ac-e83ce38ada16@googlegroups.com> Cancel-Lock: sha1:/OnAA7mtZ70abxPo+5qB7Yu27yM= Xref: csiph.com comp.sys.apple2.programmer:3743 Marco Verpelli wrote: > It seems to me that this is the case in the manual on page 87. > > NOTE: The assembler will not permit an EQUate to a zero page number after > the label equated has been used, since bad code could result from such a > situation . Also see the section on Variables. > > (1) For Example: > > 1 LABEL LDA #LEN > 2 LABEL DFB $00 > 3 DFB $01 > 4 LEN EQU * - LABEL > > When assembled, this will give an "ILLEGAL FORWARD REFERENCE IN LINE 4" > ERROR message. The solution is as follows: > > 1 LDA #END - LABEL > 2 LABEL DFB $00 > 3 DFB $01 > 4 END > > Marco > Thank you Marco, that is exactly that. Shame on I. I should have read the "not fucking manual" this time too. BenoƮt -- Growing old is mandatory.. growing up is optional.. But the other way round is as true.