Jump to content

Terminal control/Clear the screen: Difference between revisions

m
Line 101:
=={{header|68000 Assembly}}==
===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). TheSince registersall <code>D0</code>,of <code>D1</code>,the andNEO <code>A0</code>GEO's willgraphics beare clobberedeither afterFIX returninglayer tiles or hardware sprites, sothis keepwill thatclear the screen in mindits 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===
1,489

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.