Re: Work around ambiguities in LL(1) assembler parser

Hans-Peter Diettrich <DrDiettrich1@aol.com>
Mon, 07 Jan 2008 07:41:16 +0100

          From comp.compilers

Related articles
Work around ambiguities in LL(1) assembler parser m@il.it (=?iso-8859-1?b?RnLpZOlyaWM=?=) (2008-01-06)
Re: Work around ambiguities in LL(1) assembler parser wyrmwif@tsoft.org (SM Ryan) (2008-01-07)
Re: Work around ambiguities in LL(1) assembler parser DrDiettrich1@aol.com (Hans-Peter Diettrich) (2008-01-07)
Re: Work around ambiguities in LL(1) assembler parser gene.ressler@gmail.com (Gene) (2008-01-07)
| List of all articles for this month |
From: Hans-Peter Diettrich <DrDiettrich1@aol.com>
Newsgroups: comp.compilers
Date: Mon, 07 Jan 2008 07:41:16 +0100
Organization: Compilers Central
References: 08-01-015
Keywords: parse, assembler
Posted-Date: 07 Jan 2008 02:39:32 EST

Fridiric wrote:


> LDA (data),Y ; #1 Indirect address indexed by Y
>
> index EQU 123
> LDA (index-1)*3,Y ; #2 Absolute address indexed by Y
> LDA 3*(index-1),Y ; Equivalent but non ambiguous


Are you sure that you got it right?


What processor do you have in mind (Z80, 6502, 6809...)?


IMO a unique addressing mode is specified by ",Y", where the first
operand specifies an absolute address. Then it depends on the processor,
how that address and the index register are combined, in order to form
the final address.


DoDi


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.