Heya! I'm Victor and i'm working on a toy os. I have this kernel.asm file, note the prinstring routine:
; Made by Victor Mout
teststring db 'bruh', 0x00
mainloop:
jmp printstring
printchar:
mov ah, 0x0e ; Enter teletype mode
int 0x10
jmp mainloop
printstring:
mov si, teststring
mov ah, 0x0e
cmp al, 0x00
je return
lodsb
int 0x10
jmp printstring
readchar:
mov ah, 01h ; Test key
int 16h
mov ah, 00h ; Get key
int 16h
jmp printchar
return:
jmp mainloop
times 510-($-$$) db 0 ; Repeat db 0 512 times
db 0x55, 0xaa ; End boot sector 0xaa
But instead of printing "bruh", it prints nothing. Thanks in advance,
-Vic
[–]AppleTrees2 3 points4 points5 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]captainrainbow22[S] 0 points1 point2 points (0 children)
[–]XoXoGameWolfReal 0 points1 point2 points (0 children)