Terminal control/Inverse video: Difference between revisions

m
Line 83:
=={{header|ARM Assembly}}==
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 array of <code>uint_16</code> values, each representing a color.
 
<lang ARM Assembly>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 223 ⟶ 225:
{{out}}
[https://ibb.co/5ByNN9K Picture of output text]
 
 
=={{header|AutoHotkey}}==
1,489

edits