I am really happy today


Cheers
Abdullah Abunada
Code: Select all
./configure --enable-debugger --enable-debugger-gui --enable-disasm --disable-plugins
make && sudo make install
Code: Select all
bochsdbg.exe -q -f bochsrc.bxrc
Code: Select all
###############################################################
# bochsrc.txt file for DLX Linux disk image.
###############################################################
# how much memory the emulated machine will have
megs: 32
# filename of ROM images
romimage: file=c:\viki\Bochs-2.4\BIOS-bochs-latest
vgaromimage: file=c:\viki\Bochs-2.4\VGABIOS-lgpl-latest
# what disk images will be used
floppya: 1_44="C:\viki\osdev\vk\ucos\floppy.img", status=inserted
# hard disk
ata0: enabled=0, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
ata0-master: type=disk, path="", cylinders=306, heads=4, spt=17
# choose the boot disk.
boot: a
display_library: win32, options="gui_debug" # use Win32 debugger gui
# where do we send log messages?
log: bochsout.txt
mouse: enabled=0
#gdbstub: enabled=1, port=950, text_base=0, data_base=0, bss_base=0
Just a piece of history in case anyone might know, how did they first code linux 1.0? Im pretty sure it was way before bochs existed.Abunada wrote:Hi lads,
Recently I had switched to bochs since I had recognized it is virtually impossible to code an operating system without a debugger.
ah yes, but you don't actually *NEED* a debugger. it's just it makes things easier when things go bad. if you didn't want to use a debugger, you could write out a full algorithm and work out exactly what each register is at any single instruction (which is basicly breakpoint testing). if it doesn't look right, then it's going to be wrong. right?yemista wrote:Just a piece of history in case anyone might know, how did they first code linux 1.0? Im pretty sure it was way before bochs existed.Abunada wrote:Hi lads,
Recently I had switched to bochs since I had recognized it is virtually impossible to code an operating system without a debugger.
I have heard of monitor explosions (even I can't find any videos on youtube), but HD smoking !? what exactly did you do? Tell me more!besides that, when linux 1.0 was being made, the technology in a computer was much higher than it is today. so you didn't really wanna test on hardware until you've double-triple-quadruple checked the code for any rogue code, just in case something went horribly wrong (e.g. the most common thing is a mis-programmed monitor resulting, most violently, in flying glass). having done this on an old laptop, causing the HD to start smoking, i advise precaution.
</sarcasm>haha... </sarcasm>yemista wrote:oh wow, those guys were hard core. im gonna remember bochs at thanksgiving