Ouch! Yeah, thinking about it... for me its a Zero-page address. However, it is an absoulute address as well, so the assembler is right and I am wrong. :( But that were some awesome fast replies from you guys :) cheers, crt xl PS: Is it possible to generate a labels-file without the "."? I HAVE a tiny SED script to get rid of it, however, if someone uses Windows.... :) On 06/24/2011 11:29 PM, Ullrich von Bassewitz wrote: > > Hi! > > On Fri, Jun 24, 2011 at 09:38:50PM +0200, Daniel Pralle wrote: >> just found a "bug" in my code I was searching for 1h. >> Instead of writing data to a buffer in the Zero-page it ended up >> somewhere else. I used STA $30,y. The generated opcode was $99 (STA >> abs,y). because STA ZP,y doesn't exist. Shouldn#t that be an error? > > Why do you think this is an error? The assembler did exactly what it was told. > If you want zeropage addressing and nothing else, use something like > > sta z:$33,y > > in which case you would have got > > Error: Illegal addressing mode > > Regards > > > Uz > > ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Sat Jun 25 00:20:00 2011
This archive was generated by hypermail 2.1.8 : 2011-06-25 00:20:03 CEST