NASM - The Netwide Assembler

NASM Forum => Programming with NASM => Topic started by: serrrgggeee on March 10, 2019, 04:29:02 PM

Title: debug nasm os
Post 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.
Title: Re: debug nasm os
Post by: Frank Kotler on March 10, 2019, 11:12:31 PM
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

Title: Re: debug nasm os
Post by: serrrgggeee on March 12, 2019, 06:44:53 AM
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.
Title: Re: debug nasm os
Post by: Frank Kotler on March 13, 2019, 01:32:48 AM
Dunno. Consult the Bochs documentation?

Best,
Frank

Title: Re: debug nasm os
Post by: debs3759 on March 13, 2019, 11:00:05 PM
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.