flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > debugging |
Author |
|
audioman 15 May 2005, 04:59
how do you debug your OSes? you restart then load from a floppy or you debug it while in windows using a prog?
|
|||
15 May 2005, 04:59 |
|
joachim_neu 15 May 2005, 09:14
jear, i use bochs, too. but you also can debug the OS from itself, if you write a function to output all the registers and so on... i think then it's more real than in bochs, cause (as i already got) something doesn't run in bochs but in real and the other way round...
|
|||
15 May 2005, 09:14 |
|
crc 15 May 2005, 12:49
I use qemu rather than bochs for preliminary testing. I can do full testing and debugging on real hardware (booting from hard drive or floppy)
|
|||
15 May 2005, 12:49 |
|
bubach 16 May 2005, 11:34
But with BOCHS you can find out if variables and registers have the desired values at a sertain point. It's really valuable sometimes.
|
|||
16 May 2005, 11:34 |
|
crc 16 May 2005, 21:42
Quote: But with BOCHS you can find out if variables and registers have the desired values at a sertain point. It's really valuable sometimes. I can see register values and such with qemu. Press ctrl+alt+2 in the emulator window and type "info registers". Other things like the PIC settings and irq status are also provided in the qemu monitor. |
|||
16 May 2005, 21:42 |
|
audioman 17 May 2005, 03:32
how do you use/load the bin files in qemu?
|
|||
17 May 2005, 03:32 |
|
crc 19 May 2005, 10:23
I use a batch file with:
Code: qemu\qemu.exe -L qemu -fda rf8.img -boot a -m 16 All of my qemu files are in a directory named "qemu". The first part tells the batch file to load qemu.exe; the "-L qemu" tells qemu to look in the "qemu" directory for the BIOS and video roms. "-fda <filename> -boot a" means to use <filename> as the disk image and boot from drive "A". The final part, "-m 16" tells qemu to provide 16 megs of RAM. Full docmentation for qemu can be found at http://fabrice.bellard.free.fr/qemu/qemu-doc.html |
|||
19 May 2005, 10:23 |
|
Octavio 19 May 2005, 11:50
audioman wrote: how do you debug your OSes? you restart then load from a floppy or you debug it while in windows using a prog? My OS has a debugger, if the OS crash before the debugger is ready then i print messages, but most of the code can be debugged like a simple aplication. In some rare cases i use a second computer conected using the serial port. |
|||
19 May 2005, 11:50 |
|
f0dder 19 May 2005, 13:05
crc, have you been able to get network support working in qemu under windows? :/
|
|||
19 May 2005, 13:05 |
|
crc 21 May 2005, 00:58
f0dder: I can use the network without difficulty with Linux and NetBSD iso's and qemu; I haven't tried any other OSes with network support under it yet.
|
|||
21 May 2005, 00:58 |
|
bogdanontanu 21 May 2005, 18:27
The network in QEMU has a few major bugs.
Most of them regarding IRQ firing sequence. In my QEMU version the IRQ will fire even in after a CLI instruction This renders SolOS network driver non functional because i expect the IRQ to come after STI instruction and not after a CLI |
|||
21 May 2005, 18:27 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.