From: Memblers (memblers_at_comcast.net)
Date: 2004-02-02 21:50:32
Is there a way to force CA65 to assemble code like this? LDA $00F0 This is optimized to LDA $F8 by default, it would be good to know if there's a way to bypass that without resorting to .byte $AD,$F0,$00 I know someone who's working on a dissassembler that's targeting CA65 for re- assembly, and some programs actually do things like that. (thread is here, if anyone's interested: http://nesdev.parodius.com/cgi- bin/wwwthreads/showpost.pl?Board=nesdev&Number=1628 ) A fun story: A while back I had some timed code that was amazingly one cycle too short, and the only obvious way of using that cycle was by using the .byte commands on one of the zero-page memory reads. I don't think that situation arises very often, heheh, but I searched the docs then (and again just now) and couldn't find any info about doing this any other way. peace. Memblers ---------------------------------------------------------------------- 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 : 2004-02-02 22:28:47 CET