Text Mode Cursor: Difference between revisions

m
→‎Source in assembly: Cleaned up code
[unchecked revision][unchecked revision]
(Added section Setting the Cursor Start and End Scanlines)
m (→‎Source in assembly: Cleaned up code)
Line 138:
push rdx
 
mov dx,0x3d4 ; one of VGA's Index registers controller
mov al,0xa ; index 0xa is the LOW cursor shape register
out dx,al
 
inc dx ; one of VGA's data registerregisters, the data register of port 0x3d4, allows reads and writes to VGA's registers.
mov al,0x3f ; bits 6-7 must be 0 , if bit 5 set the cursor is disable disabled, bits 0-4 controllcontrol the cursor shape
out dx,al
pop rdx
Anonymous user