Author Topic: debug nasm os  (Read 5715 times)

Offline serrrgggeee

  • Jr. Member
  • *
  • Posts: 2
debug nasm os
« 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.

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: debug nasm os
« Reply #1 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


Offline serrrgggeee

  • Jr. Member
  • *
  • Posts: 2
Re: debug nasm os
« Reply #2 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.

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: debug nasm os
« Reply #3 on: March 13, 2019, 01:32:48 AM »
Dunno. Consult the Bochs documentation?

Best,
Frank


Offline debs3759

  • Global Moderator
  • Full Member
  • *****
  • Posts: 221
  • Country: gb
    • GPUZoo
Re: debug nasm os
« Reply #4 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.
My graphics card database: www.gpuzoo.com