Merge pull request #6 from E-Almqvist/dev

Changed return label for print SR
pull/13/head
E. Almqvist 4 years ago committed by GitHub
commit 35a2b82766
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/elib/io.asm

@ -9,7 +9,7 @@ print:
; Char check ; Char check
mov al, [bx] ; load the char mov al, [bx] ; load the char
cmp al, ASCII_END ; check if end of string cmp al, ASCII_END ; check if end of string
je return ; if al == ASCII_END then return end | lua is good psuedo-code je printreturn ; if al == ASCII_END then return end | lua is good psuedo-code
; BIOS Printing ; BIOS Printing
@ -20,7 +20,7 @@ print:
inc bx ; increment the pointer to get next char inc bx ; increment the pointer to get next char
jmp printLoop ; repeat jmp printLoop ; repeat
return: printreturn:
popa ; restore all registers popa ; restore all registers
ret ; return to previous location ret ; return to previous location

Loading…
Cancel
Save