Video display modes: Difference between revisions

m
Line 12:
For the following, the value stored to these memory locations does not matter. It is the mere act of writing to them that causes the Apple II to change modes. You can read from them as well to do the same, but there's really no reason to do so, as both <code>LDA $????</code> and <code>STA $????</code> both take 4 clock cycles, and you've only got 3 registers you can use so there's no sense in wiping the accumulator with a garbage value that has no actual meaning.
 
{{trans|Applesoft BASIC}}
* Change to text mode:<code>STA $C050</code>
 
* Change to graphics mode:<code>STA $C051</code>
* Display page 1 of video memory:<code>STA $C054C050</code>:Change to text mode
* Display page 2 of video memory:<code>STA $C055C051</code>:Change to graphics mode
* <code>STA $C052</code>:Change to full screen (whatever mode you're "in" takes up the whole screen)
* Change graphics mode to low-resolution (16-color) mode:<code>STA $C056</code>
* <code>STA $C053</code>:Change to mixed screen (graphics mode is the majority of the screen, but there's 4 rows of text on the bottom)
* Change graphics mode to hi-resolution (6-color) mode:<code>STA $C057</code>
* <code>STA $C054</code>:Display page 1 of video memory
* <code>STA $C055</code>:Display page 2 of video memory
* <code>STA $C056</code>:Change graphics mode to low-resolution (16-color) mode:<code>STA $C056</code>
* <code>STA $C057</code>:Change graphics mode to hi-resolution (6-color) mode:<code>STA $C057</code>
 
===Nintendo Entertainment System===
1,489

edits