aboutsummaryrefslogtreecommitdiffstats
path: root/src/kernel/kernel.print.asm
blob: d7a6a7db36faf4d0cfeba675fab2acd9a1a65ddb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
    ;; kernel.print.asm
%define VGA_BUFFER 0xB8000
_terminal_getidx:   
    push ax
    shl dh, 1
    mov al, VGA_WIDTH
    mul dl
    mov dl, al
    shl dl, 1
    add dl, dh
    mov dh, 0   
    pop ax
    ret

_terminal_set_color:    
    shl dl, 4
    or dl, dh
    mov [terminal_color], dl
    ret