Character codes: Difference between revisions
Content added Content deleted
Puppydrum64 (talk | contribs) m (→{{header|68000 Assembly}}: Added explanation of "UnpackNibbles8" and "PrintChar") |
Puppydrum64 (talk | contribs) m (→{{header|68000 Assembly}}: formatting) |
||
Line 65: | Line 65: | ||
=={{header|68000 Assembly}}== |
=={{header|68000 Assembly}}== |
||
The printing routine only understands ASCII characters as codes anyway, so the "given a code produce its character" part is trivial. |
The printing routine only understands ASCII characters as codes anyway, so the "given a code produce its character" part is trivial. |
||
PrintChar routine is omitted for brevity. It converts the two |
The <code>PrintChar</code> routine is omitted for brevity. It converts the two cursor variables to a FIX layer address and outputs the character using the NEOGEO's FIX layer (the layer where text is displayed). Characters are stored in ROM and arranged in ASCII order. |
||
<lang 68000devpac> JSR ResetCoords ;RESET TYPING CURSOR |
<lang 68000devpac> JSR ResetCoords ;RESET TYPING CURSOR |
||