Text Mode Cursor: Difference between revisions

Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content deleted Content added
Added section Setting the Cursor Start and End Scanlines
m →‎Source in assembly: Cleaned up code
Line 138: Line 138:
push rdx
push rdx


mov dx,0x3d4 ;one of VGA's Index registers controller
mov dx,0x3d4 ; one of VGA's Index registers controller
mov al,0xa ; index 0xa is the LOW cursor shape register
mov al,0xa ; index 0xa is the LOW cursor shape register
out dx,al
out dx,al


inc dx ;one of VGA's data register, the data register of port 0x3d4, allows reads and writes to VGA's registers.
inc dx ; one of VGA's data registers, 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 , bits 0-4 controll the cursor shape
mov al,0x3f ; bits 6-7 must be 0, if bit 5 set the cursor is disabled, bits 0-4 control the cursor shape
out dx,al
out dx,al
pop rdx
pop rdx