-
Notifications
You must be signed in to change notification settings - Fork 2
Text module
Konstantin (Vyacheslav) Kompan edited this page Feb 28, 2018
·
3 revisions
| Name | Decription | Arguments | Used registers | Note |
|---|---|---|---|---|
| tgbl_printString | Print string | SI=string, AH=color, DI=VRAM offset | AX, SI, DI | Can be called with a macro tgblm_printString |
| tgbl_uintToStr | Convert unsigned integer to decimal ASCII string | AX=integer, DI=string address | AX, BX, DX, SI, DI | Max integer size is 16 bits Can be called with the macros tgblm_uintByteToStr and tgblm_uintWordToStr |
| Name | Decription | Arguments | Used registers | Note |
|---|---|---|---|---|
| tgblm_addConstString | Add constant string | name, string (w/o 0-terminator) | Creates a name string and a name_len constant containig the length of string |
|
| tgblm_printString | Print string | string, color, row, column | AX, SI, DI | |
| tgblm_printChar | Print one char | char, color, row, column | AX, DI | |
| tgblm_clearString | Clear string on screen | row, column, width | AX, DI | |
| tgblm_uintByteToStr | Convert unsigned integer byte in memory to decimal ASCII string | integer address, string address | AX, BX, DX, SI, DI | Max integer size is 8 bits |
| tgblm_uintWordToStr | Convert unsigned integer word in memory to decimal ASCII string | integer address, string address | AX, BX, DX, SI, DI | Max integer size is 16 bits |