Terminal control/Inverse video: Difference between revisions

m
Line 84:
This is an example of the age-old XOR technique to flip the colors of a monochrome graphic. While the Game Boy Advance uses 16 bits per pixel, we can simply apply the XOR prior to unpacking the text graphics. The bitmap font and print routines created by Keith of [http://www.chibiakumas.com ChibiAkumas].
 
The Game Boy Advance's video memory is very simple, it's essentially an two-dimensional array of 16-bit values ranging from memory locations <code>uint_160x06000000</code> values,to <code>0x06012BFF</code> represents each representingpixel of the screen. Write a 15-bit hex color. value to an element of the array to turn the corresponding pixel to that color value.
 
<lang ARM Assembly>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1,489

edits