Re: [cc65] OT: Atari ML help

Date view Thread view Subject view

From: Groepaz (groepaz_at_gmx.net)
Date: 2003-05-19 08:21:02


On Monday 19 May 2003 06:58, Greg King wrote:

> It's not only Atari assemblers that do it.  Some CBM assemblers, that
> demo-coders like, do it.  

name some? never stumbled about this (then again, i discovered ca65 early and 
didnt use other crossassemblers much :=))

> 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."]

and as that, it should be threatened as a mistake, and not silently converted 
to something that works :=) 

lda <label

and 

lda label

in those assemblers i used is almost everytime used to decide if 2byte opcode 
(lda <label) or 3byte opcode is used (lda label)...cc65 does it this way if i 
am not terribly wrong :)

> 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.

okok, i understand :=) i now also understand the original problem.... code 
that relies on the above behaviour will probably still assemble, but no more 
work correctly (all of those "immediate" loads are now loads from 
zeropage)... i can imagine that this is kinda tricky :O)

gpz

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-05-19 08:27:08 CEST