Merge pull request #14 from E-Almqvist/dev

Dev
pull/25/head
Elias Almqvist 3 years ago committed by GitHub
commit 071888af8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/bios.asm
  2. 2
      src/bios/disk.asm
  3. 9
      src/bootloader.asm
  4. 0
      src/equ/ascii.asm
  5. 0
      src/equ/bios.asm
  6. 0
      src/equ/vga.asm
  7. 2
      src/pm.asm
  8. 0
      src/pm/vga/print.asm

@ -1,5 +1,5 @@
; EQUs ; EQUs
%include "equ/BIOS.asm" %include "equ/bios.asm"
; SRs ; SRs
%include "bios/convert.asm" %include "bios/convert.asm"

@ -1,5 +1,4 @@
disk_read: disk_read:
pusha
push dx ; store dx on stack so that we can compare later push dx ; store dx on stack so that we can compare later
mov ah, BIOS_DISK_READ ; specify function mov ah, BIOS_DISK_READ ; specify function
@ -18,7 +17,6 @@ disk_read:
cmp dh, al ; if dh != al then error cmp dh, al ; if dh != al then error
jne sector_error jne sector_error
popa
ret ret
sector_error: sector_error:

@ -12,8 +12,8 @@
; Read second sector (outside bootsector) ; Read second sector (outside bootsector)
mov bx, 0x9000 ; LOAD LOCATION mov bx, 0x9000 ; LOAD LOCATION
mov dh, 2 ; SECTOR-COUNT mov dh, 2 ; SECTOR-COUNT
mov dl, [BOOT_DRIVE] ; DISK-INDEX mov dl, [BOOT_DRIVE] ; DISK-INDEX
call disk_read call disk_read
@ -29,11 +29,12 @@
jmp $ ; inf loop jmp $ ; inf loop
%include "equ/ASCII.asm" %include "equ/ascii.asm"
%include "bios.asm" %include "bios.asm"
%include "pm.asm"
; Data ; Data
welcome_string: db "e Operating-System (eOS)", ASCII_CARRIAGE_RETURN, ASCII_LINEBREAK, "Version 2021 0.0", ASCII_END welcome_string: db "e Operating-System (eOS)", ASCII_CARRIAGE_RETURN, ASCII_LINEBREAK, "Version 2021 0.0", ASCII_END
BOOT_DRIVE: db 0 BOOT_DRIVE: db 0
; Bootsector ; Bootsector

@ -0,0 +1,2 @@
%include "equ/vga.asm"
%include "pm/vga/print.asm"
Loading…
Cancel
Save