Printing To Screen: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Content deleted Content added
→Basics: Clarified expression |
m Bot: Replace deprecated source tag with syntaxhighlight |
||
Line 118: | Line 118: | ||
If you have a pointer to video memory and want to write a string, here is how you might do it; |
If you have a pointer to video memory and want to write a string, here is how you might do it; |
||
< |
<syntaxhighlight lang="c"> |
||
// note this example will always write to the top |
// note this example will always write to the top |
||
// line of the screen |
// line of the screen |
||
Line 130: | Line 130: | ||
} |
} |
||
} |
} |
||
</syntaxhighlight> |
|||
</source> |
|||
This simply cycles through each character in the string, and copies it to the appropriate place in video memory. |
This simply cycles through each character in the string, and copies it to the appropriate place in video memory. |