Re: [cc65] .cpu none?

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2004-04-20 15:18:53
Hi!

On Thu, Apr 15, 2004 at 03:43:33PM +0200, MagerValp wrote:
> PS: Wouldn't happen to be a simple patch that I could apply to my cc65
>     sources?

I've made the change and placed the patch onto the ftp server:

    ftp://ftp.musoftware.de/pub/uz/cc65/patches/ubiquitous_idents-patch.txt

I'm not as willing to shot myself into the foot as other people, so the
foot-shooting (aka "all identifiers can be instruction names") must be enabled
using

        --feature ubiquitous_idents

or the corresponding .feature directive in the source. Please note that the
feature name was deliberately choosen to be hard to type, to prevents its use
by anyone but the most hardcore programmers.

A nice thing that evolved without any additional work is that the assembler
will distinguish between labels and mnemonics depending on the context, so for
example the following will work:

                jmp     rts             ; Jumps to rts label
        rts:    rts                     ; Assembles to rts instruction

As you can see this allows arbitrary cryptic sources.

If the patch doesn't work with 2.10.0 (not tested), you may also choose to
download the snapshot, which is currently building.

As usual, feedback is appreciated.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Apr 20 15:18:57 2004

This archive was generated by hypermail 2.1.8 : 2004-04-20 15:19:03 CEST