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

From: Payton Byrd <>
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
	adc _ormand+font::IndexPtr

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

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

To unsubscribe from the list send mail to 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