pull/3/head
E. Almqvist 4 years ago
parent 2e979a9c7b
commit e504feaf11
  1. 3
      src/BIOS_equ.asm
  2. 4
      src/bootloader.asm

@ -0,0 +1,3 @@
; EQUs (lazy variables) for BIOS stuff
BIOS_INT equ 0x10
BIOS_MODE_TELETYPE equ 0x0e

@ -1,8 +1,9 @@
%include "equ/BIOS.asm" %include "equ/BIOS.asm"
%include "equ/ASCII.asm" %include "equ/ASCII.asm"
mov ah, 0x0e ; enter teletype mode (BIOS) mov ah, BIOS_MODE_TELETYPE ; enter teletype mode (BIOS)
; Print "eOS"
mov al, "e" mov al, "e"
int BIOS_INT int BIOS_INT
@ -34,6 +35,7 @@ loop:
cmp al, 90 ; 26 letters in english alphabet (64 + 26) cmp al, 90 ; 26 letters in english alphabet (64 + 26)
jl loop ; if al < 64+26: jmp loop jl loop ; if al < 64+26: jmp loop
jmp $ jmp $
times 510-($-$$) db 0 times 510-($-$$) db 0

Loading…
Cancel
Save