Terminal control/Inverse video: Difference between revisions

Content added Content deleted
Line 83: Line 83:
=={{header|ARM Assembly}}==
=={{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].
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>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
<lang ARM Assembly>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 223: Line 225:
{{out}}
{{out}}
[https://ibb.co/5ByNN9K Picture of output text]
[https://ibb.co/5ByNN9K Picture of output text]



=={{header|AutoHotkey}}==
=={{header|AutoHotkey}}==