Text Mode Cursor: Difference between revisions
m
→Moving the Cursor without the BIOS: added link to BIOS/data area pages
[unchecked revision] | [unchecked revision] |
m (→Moving the Cursor without the BIOS: added source tags) |
m (→Moving the Cursor without the BIOS: added link to BIOS/data area pages) |
||
Line 11:
Without access to [[BIOS]] calls and functions, moving the cursor requires using video hardware control. Lucky it is a simple procedure.
Note, this quick example assumes 80x25 screen mode. Also note that the base port (here assumed to be 0x3D4) should be read from the [[BIOS]] [[Memory Map (x86)#BIOS Data Area .28BDA.29|data area]].
<source lang="c">
/* void update_cursor(int row, int col)
|