I need to display HGR page 1 ($2000 to $3FFF) located in AUX memory (not in MAIN memory). According to the "Apple IIc Reference Manual - Volume 1", page 45, I must first turn 80Store on by writing to the address $C001, then read the address "page 2" ($CO55). I understand this should display HGR1X (hires graphic in AUX memory). The following code is an example, but it does not work: page 1 in main memory is still displayed :
org $8000 lda $C052 ; mixoff lda $C050 ; graphics lda $C057 ; hires sta $C001 ; 80strore lda $C054 ; page1 : display page1 ($2000 to $3FFF) in main memory ; it works. jsr rdkey ; wait key from user lda $C055 ; page2 : HGR1X in AUX memory should be displayed now. ; it doesn't work, main memory HGR page is still on screen. rts
What's wrong in that code? Can you provide a very simple example of code that allows to display the HGR page 1 in AUX memory? Same question with page 2 in AUX memory ($4000 to $5FFF).
My goal is to create an animation showing alternately HGR page 1 and 2 in the main memory and in the auxiliary memory, by going instantly between these 4 pages.