NASM - The Netwide Assembler
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Calendar
Login
Register
NASM - The Netwide Assembler
»
NASM Forum
»
Programming with NASM
»
debug nasm os
« previous
next »
Print
Pages: [
1
]
Author
Topic: debug nasm os (Read 11134 times)
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.
Logged
Frank Kotler
NASM Developer
Hero Member
Posts: 2667
Country:
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
Logged
serrrgggeee
Jr. Member
Posts: 2
Re: debug nasm os
«
Reply #2 on:
March 12, 2019, 06:44:53 AM »
Quote from: Frank Kotler on March 10, 2019, 11:12:31 PM
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.
Logged
Frank Kotler
NASM Developer
Hero Member
Posts: 2667
Country:
Re: debug nasm os
«
Reply #3 on:
March 13, 2019, 01:32:48 AM »
Dunno. Consult the Bochs documentation?
Best,
Frank
Logged
debs3759
Global Moderator
Full Member
Posts: 224
Country:
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.
Logged
My graphics card database:
www.gpuzoo.com
Print
Pages: [
1
]
« previous
next »
NASM - The Netwide Assembler
»
NASM Forum
»
Programming with NASM
»
debug nasm os