Pseudocode um den Cursor zu setzen
word offset = x + y * 80
outb(0x3D4, 14)
outb(0x3D5, offset >> 8) ;schreibe Highbyte
outb(0x3D4, 15)
outb(0x3D5, offset & 0xFF) ; schreibe Lowbyte
Position auslesen
word offset
outb(0x3D4, 14)
offset = inb(0x3D5) << 8 ; lese Highbyte
outb(0x3D4, 15)
offset |= inb(0x3D5) ; lese Lowbyte
x = o % 80
y = o / 80
Ungetestet (vor allem der Lesecode), müsste aber gehen.