1
0
mirror of synced 2026-01-30 21:42:35 +00:00

Fixes stability issue and booting from fixed disk. (#35)

* Revert "Some more refactor of the Teensy code."

This reverts commit e03594b514.

* Fix issue booting from other fixed disk.
This commit is contained in:
Matthieu Bucchianeri
2025-02-19 21:22:23 -08:00
committed by GitHub
parent fe8385da08
commit 4b9a0874b2
3 changed files with 167 additions and 180 deletions

View File

@@ -937,10 +937,7 @@ int18h_entry:
mov di, 0x7c00
rep stosw
.read_boot_sector:
mov dx, REG_SCRATCH_0
in al, dx
mov dl, al
xor dh, dh
mov dx, 0x80 ; MBR can only boot from 1st fixed disk
mov ax, 0x201 ; read 1 sector
mov cx, 1 ; sector 1
mov bx, 0x7c00