Code at 0x9F00 segment after boot (Miscellaneous)
Hello Zyzzle,
> But, isn't it possible to boot through LILO and / or GRUB in Linux UEFI
> bootloader, and then load (emulate?) legacy MBR mode, and pass this code by
> in order to then boot native DOS? I hope it is so.
The main problem is that you need a legacy BIOS (or an emulation of such a thing) which knows how to talk to the classical MBR or floppy disk bootloader.
The classical bootloader needs to invoke legacy BIOS services --- as documented in Ralf Brown's Interrupt List and elsewhere --- to read disk sectors, write to the screen, read from the keyboard, find the amount of conventional memory, etc.
UEFI also has similar services, but the programming interface is totally different. So a bootloader will need to talk to UEFI in a totally different way. Alternatively, the boot disk must have some extra code to emulate enough of the legacy BIOS "on top of" UEFI, for stuff to work.
And that is the hard part. :-\
(I am kind of hoping that there is some sort of existing code project which tries to do this emulation. Because it seems this stuff is indeed hard.)
Thank you!
---
https://gitlab.com/tkchia · https://codeberg.org/tkchia · 😴 "MOV AX,0D500H+CMOS_REG_D+NMI"
Complete thread:
- Code at 0x9F00 segment after boot - CandyMan, 04.11.2020, 17:50 (Miscellaneous)
![Open in board view [Board]](img/board_d.gif)
![Open in mix view [Mix]](img/mix_d.gif)
- Code at 0x9F00 segment after boot - Laaca, 04.11.2020, 21:00
- Code at 0x9F00 segment after boot - CandyMan, 05.11.2020, 12:35
- Code at 0x9F00 segment after boot - RayeR, 06.11.2020, 13:27
- Code at 0x9F00 segment after boot - tkchia, 08.11.2020, 07:45
- Code at 0x9F00 segment after boot - RayeR, 08.11.2020, 16:07
- Code at 0x9F00 segment after boot - Zyzzle, 09.11.2020, 06:46
- Code at 0x9F00 segment after boot - tkchia, 09.11.2020, 17:23
- Code at 0x9F00 segment after boot - RayeR, 10.11.2020, 03:52
- Code at 0x9F00 segment after boot - tkchia, 09.11.2020, 17:23
- Code at 0x9F00 segment after boot - Zyzzle, 09.11.2020, 06:46
- Code at 0x9F00 segment after boot - CandyMan, 08.11.2020, 20:50
- Code at 0x9F00 segment after boot - tkchia, 09.11.2020, 17:03
- Code at 0x9F00 segment after boot - RayeR, 08.11.2020, 16:07
- Code at 0x9F00 segment after boot - CandyMan, 08.11.2020, 20:45
- Code at 0x9F00 segment after boot - bretjohn, 09.11.2020, 00:26
- Code at 0x9F00 segment after boot - tkchia, 08.11.2020, 07:45
- Code at 0x9F00 segment after boot - RayeR, 06.11.2020, 13:27
- Code at 0x9F00 segment after boot - CandyMan, 05.11.2020, 12:35
- Code at 0x9F00 segment after boot - Laaca, 04.11.2020, 21:00
Mix view