NASM - The Netwide Assembler
NASM Forum => Programming with NASM => Topic started by: serrrgggeee on March 10, 2019, 04:29:02 PM
-
Hi. I learn mike os and not understand any part of code, how can i debug code. I mean that i want see a streeng`s number where code has executed.
-
Hi serrrgggeee.
Welcome to the forum.
Why are you looking at code you don't understand? An OS is an advanced project. Not suitable for a beginner. You'll only frustrate yourself! I strongly suggest starting with something simpler and working your way up.
Having said that, the MikeOS page:
http://mikeos.sourceforge.net/handbook-user.html
seems to suggest Bochs for debugging. Good luck!
Best,
Frank
-
seems to suggest Bochs for debugging. Good luck!
can you give some example how to use Bochs to debug. I want debuging not only mike os, it`s fit any bootloader writed on nasm.
-
Dunno. Consult the Bochs documentation?
Best,
Frank
-
If you want to see a fully documented FAT12 bootloader in nasm, check my thread at https://forum.nasm.us/index.php?topic=2265.0
It reads a text file from the floppy (it can be very fragmented) and displays it. It is easy to change it to load and execute a second stage loader, and converting it for FAT16 or FAT32 would be trivial. I need to get back into coding and update it, my OS died when I got too ill to code.