Re: [cc65] opt65

From: Shawn Jefferson <jefferson_shawn_a8bit1yahoo.com>
Date: 2004-07-21 19:36:35
--- Groepaz <groepaz@gmx.net> wrote:

> slightly modified version of daniel dallmanns (aka
> poldi)
> program. should work with code produced by cc65 (let
> me
> know if you find something that doesnt!) and is
> sometimes
> able to eliminate some stuff the builtin optimizer
> missed.

I just ran it over my current project, and ecounter a
couple of errors:

;;line           optimized             original
;;   0 ldx _image_table_cyl+1 | lda _image_table_cyl
dep: mod: feeds: passes: fl: 0 [0/0]
;;   1 lda            #511 | ldx _image_table_cyl+1
dep: mod: feeds: passes: fl: 0 [1/1]
;;   2                     | ora            #$FF dep:
mod: feeds: passes: fl: 0 [2], val=255
;; 1 instructions saved.

This gives me a range error when I try to use ca65 to
assemble it.

;
---------------------------------------------------------------
; unsigned char __near__ text_input (unsigned char,
unsigned char, unsigned char*, unsigned char, u
nsigned char, unsigned char)
;
---------------------------------------------------------------

For some reason here it truncated a long comment, or
maybe it was something the OS did.. I ran opt65 crap.s
> ocrap.s

--
Shawn



		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Jul 21 19:59:11 2004

This archive was generated by hypermail 2.1.8 : 2004-07-21 19:59:21 CEST