Terminal control/Clear the screen: Difference between revisions

Content added Content deleted
Line 101: Line 101:
=={{header|68000 Assembly}}==
=={{header|68000 Assembly}}==
===Neo Geo MVS===
===Neo Geo MVS===
The following will clear all hardware sprites from video memory as well as the "FIX Layer" (a simple tilemap intended for text). The registers <code>D0</code>, <code>D1</code>, and <code>A0</code> will be clobbered after returning, so keep that in mind.
The following will clear all hardware sprites from video memory as well as the "FIX Layer" (a simple tilemap intended for text). Since all of the NEO GEO's graphics are either FIX layer tiles or hardware sprites, this will clear the screen in its entirety. The only thing left will be the background color.

<lang 68000devpac>JSR $C004C2
The registers <code>D0</code>, <code>D1</code>, and <code>A0</code> will be clobbered after returning, so keep that in mind.
JSR $C004C8</lang>
<lang 68000devpac>JSR $C004C2 ;clear the FIX layer
JSR $C004C8 ;clear hardware sprites</lang>


===Sega Genesis===
===Sega Genesis===