src/vga.c
/***
 * update the vga cursor in vga registers
 */
update the vga cursor in vga registers
update the vga cursor in vga registers
void vga_sync_cursor() {
    uint16_t cursor_pos = VGA_STATE.cursor_x + VGA_STATE.cursor_y * VGA_WIDTH;
    vga_crt_reg_set(CRT_CURSOR_LOC_HIGH,
            (uchar)((cursor_pos & (0xFF << 8)) >> 8));
    vga_crt_reg_set(CRT_CURSOR_LOC_LOW, (uchar)(cursor_pos & 0xFF));
}
void vga_sync_cursor ( ) { uint16_t cursor_pos = VGA_STATE . cursor_x + VGA_STATE . cursor_y * VGA_WIDTH ; vga_crt_reg_set ( CRT_CURSOR_LOC_HIGH , ( uchar ) ( ( cursor_pos & ( 0xFF << 8 ) ) >> 8 ) ) ; vga_crt_reg_set ( CRT_CURSOR_LOC_LOW , ( uchar ) ( cursor_pos & 0xFF ) ) ; }
update the vga cursor in vga registers
update the vga cursor in vga registers