[cc65] 65C02 indirect zeropage questions

From: Shawn Jefferson <jefferson_shawn_a8bit1yahoo.com>
Date: 2004-06-04 04:32:21
How do you use indirect zeropage addressing in ca65
(with --cpu 65C02)?  I want to do:

LDA ($20) and STA ($20) but it says illegal addressing
mode.

Another question:

Can you define and use a variable that was declared
zeropage, and exported with exportzp in a C program? 
The compiler seems to complain about address size
mismatches.

Do you do this in C:
extern unsigned char zpvar;

and can this work with a struct declaration like this:
extern struct MYSTRUCT zpvar;

--
Thanks,
Shawn Jefferson



	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Jun 4 04:32:25 2004

This archive was generated by hypermail 2.1.8 : 2004-06-04 04:32:33 CEST