Re: [cc65] How to properly use a .union

From: Payton Byrd <plbyrd1gmail.com>
Date: 2013-01-22 09:20:28
I got it working.  I had to make fontData and fontIndex ZP variables and
load them with the appropriate addresses as such:

	lda #_ormand
	clc
	adc _ormand+font::IndexPtr

	sta fontIndex
	clc
	adc #$02
	sta fontNextIndex
	lda #_ormand
	clc
	adc _ormand+font::FontDataPtr
	sta fontData


Then I had to change the references in my code from lda fontIndex,y to lda
(fontIndex),y.

----------------------------------------------------------------------
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 Jan 22 09:20:56 2013

This archive was generated by hypermail 2.1.8 : 2013-01-22 09:21:00 CET