Slang v1.0 released; zp,x addressing

From: Steve Judd (sjudd_at_ffd2.com)
Date: 2005-11-22 16:42:47

First, a brief announcement:

Slang is a programming language for the C64, and really any 6502/65816
based system.  Slang may be run natively or on a PC, and the compiled
programs run on a stock system.  This is to announce the release of
version 1.0, along with:

- A new demo program (load and RUN):
		http://www.ffd2.com/fridge/slang/SLANGDEMO1.O

- A new BBS: http://drivenonline.org/forum

- The Slang Hackers mailing list: send email to
		slackers-request@starbase.globalpc.net
  with "help" in the message body.

For more info, visit http://www.ffd2.com/fridge/slang/


On a slightly related topic, a recent xlang bug had to do with zp,x
addressing differences between the 6502 and the 65816.  That is, an
instruction like

	LDA zp,X

results in an 8-bit effective address on the 6502, and a 16-bit address on
the 65816.  The BASIC floating-point conversion routines make use of the
wraparound-effect of this mode, which xlang didn't handle correctly.  This
is one of the key incompatibilities between the 6502 and 65816.

This got me to wondering just how common it was to take advantage of this
6502 "feature".  I know that I've never used it (frankly, if I ever even
knew about it I forgot it).  My guess is that use was limited to very
tight code (like the ROMs) or for code obfuscation such as a copy
protection scheme.

So my question is: anyone know of other code which makes use of this
feature?

(Just curious.)

cu,

-S

       Message was sent through the cbm-hackers mailing list

Archive generated by hypermail pre-2.1.8.