tuhdo / os01

Bootstrap yourself to write an OS from scratch. A book for self-learner.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Write character to cursor seems to break program counter

clubby789 opened this issue · comments

When I set ah to 0x0a, then call int 10h, the program counter seems to jump to uninitialized memory: 0x7c28 to 0xd2a0. If I use 0x0e (TTY mode) the character prints fine.

PutChar:
    mov ah, 0xa
    int 0x10
    leave
    ret
[ ... ]
mov al, 'H'
call PutChar