From: Greg King (gngking_at_erols.com)
Date: 2003-05-19 06:58:46
From: Groepaz Date: Friday, May 16, 2003, 01:01 AM > > On Thursday, 15 May 2003, 18:04, Piotr Fusik wrote: > > On Wed, 14 May 2003, Groepaz wrote: > > > > > > huh ... WHAT ?! > > > > > > lda <address ; load akku absolute (3 bytes) > > > > Now, I'm confused. Why "absolute"? I wrote that it's "immediate". > > Because "lda <arg>" IS absolute, and "lda #<arg>" is immediate. > Hence, your original statement, "BTW, xasm uses 'lda <address' syntax > for backward compatibility with Quick Assembler on Atari > ('lda #<address' is also supported). < ... > > "They're the same immediate mode.", doesn't make sense. > "lda <address" is NOT immediate, it's absolute. > > However, let's say Atari assemblers handle these things differently > than the rest of the world, I can live with that. :o) It's not only Atari assemblers that do it. Some CBM assemblers, that demo-coders like, do it. Those assemblers (or, more accurately, their creators) assume that no programmer, in that one's right mind, ever possibly could want actually to use this line: lda <Label ["Huh, what am I reading? What lousy code! It can't be correct; it must be a mistake."] They assume that the programmer meant to write: lda #<Label So, they pretend that the person did type that "#" character. That is why Piotr said "immediate". That is the addressing-mode that those assemblers will use. ca65 doesn't work that way -- which is why this message-thread was started. ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo_at_musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2003-05-19 07:07:47 CEST