home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,194 of 2,753   
   Hans-Peter Diettrich to Fridiric   
   Re: Work around ambiguities in LL(1) ass   
   07 Jan 08 07:41:16   
   
   From: DrDiettrich1@aol.com   
      
   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   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca