Questions tagged [bochs]

A highly portable open source IA-32 (x86) PC emulator written in C++, that runs on most popular platforms.

Bochs is a highly portable open source IA-32 (x86) PC emulator written in C++, that runs on most popular platforms. It includes emulation of the Intel x86 CPU, common I/O devices, and a custom BIOS. Currently, Bochs can be compiled to emulate a 386, 486, Pentium/PentiumII/PentiumIII/Pentium4 or x86-64 CPU including optional MMX, SSEx and 3DNow! instructions.

Official website is http://bochs.sourceforge.net/

128 questions
10
votes
8 answers

Compiling Bochs on Mac os x Snow Leopard

Was someone able to compile the Bochs simulator under Snow Leopard. Leopard worked fine for me but under Snow Leopard I get alot of problems related to the Carbon library... Ok, some more information was request. I compile with make on the shell;…
Mac4711
9
votes
3 answers

How can I use Bochs to run Assembly code?

I want to use Bochs as an 8086 emulator. Is there an easy way to do this? What I want is something like emu8086 (http://www.emu8086.com/).
7
votes
1 answer

What was CS register's value at boot time?

I'm a green hand to assembly language. These days I used bochs to simulate the boot procedure from virtual floppy. But one thing I don't know is what the CS register value is when the system initializes. ;; init registers org 0x7c00 BaseOfStack…
Layne Liu
  • 349
  • 3
  • 8
7
votes
1 answer

Enable the boot loader to load the second sector of a USB

I am learning the assembly language. I wrote a simple bootloader. After testing it out, it didn't work. Here is my code: [bits 16] [org 0x7c00] jmp start data: wolf_wel_msg db 'Welcome to Bootloader!!!',0x0D,0x0A,0 wolf_kernel_load db 'Loading…
7
votes
4 answers

Read a write a sector from hard drive with int 13h

I have a simple program. It must read first sector from hard drive (not mbr), and write it to the 0 sector (mbr). But it doesnt work. I think it is connected with wrong DAP. Thanks. [bits 16] [org 0x7c00] ;clear screen start: mov …
Vanzef
  • 333
  • 1
  • 4
  • 15
6
votes
1 answer

DEbug x64 application using IDA PRO 6.1

I have IDA PRO 6.1 - (i am unable to install the latest version) I am trying to debug x64 application with bochs debugger or windgb. I did the following: installed Bochs-2.4.6 Installed both x86&x64 version of the windows debugger. Made sure the…
dandan
  • 469
  • 2
  • 6
  • 17
5
votes
3 answers

How to set breakpoint automatically in bochsrc.txt with bochsdbg?

I want to set a breakpoint at 0x7c00 when I run bochsdbg. I don't want to type these two commands my myself everytime. b 0x7c00 c How to do it in bochsrc.txt? Thank you~
sam
  • 1,683
  • 3
  • 17
  • 25
5
votes
1 answer

I am getting the following error after installing Pint-OS and trying to run multiple alarm. I am using bochs as emulator. Any possible work around?

Prototype mismatch: sub main::SIGVTALRM () vs none at /home/abhijay/pintos-os/pintos/src/utils/pintos line 934. Constant subroutine SIGVTALRM redefined at /home/abhijay/pintos-os/pintos/src/utils/pintos line 926. warning: can't find squish-pty, so…
Abhijay
  • 161
  • 2
  • 16
4
votes
1 answer

How to setup x86 paging? Getting triple fault error

I have a toy kernel that I'm working with running under x86 on bochs. When I enable paging, bochs resets with a triple fault error. It seems that it is every and any memory access which triggers the error. So, I'm assuming that I have an error with…
Maz
  • 3,329
  • 1
  • 20
  • 27
4
votes
1 answer

Bootloader not working, error: "int13_harddisk: function 42. LBA out of range"

I'm attempting to load my loader assembly (loader.asm): [BITS 16] [ORG 0x7e00] start: ; printing message to show that loader is working mov ah, 0x13 mov al, 1 mov bx, 0xa xor dx, dx mov bp, Message mov cx, MessageLen int 0x10 End: hlt jmp…
Urbs
  • 131
  • 9
4
votes
1 answer

Bochs can't load img file and load it

Currently, I am trying to write a tiny OS from scratch. Unfortunately, In the first step, I faced a problem which drives me crazy. I write the following code as my bootloader. .code16 #generate 16-bit code .text …
Adonaim
  • 170
  • 1
  • 1
  • 11
4
votes
1 answer

Why isn't my interrupt handler firing?

I'm trying to install an interrupt handler in Bochs, but for some reason my interrupt handler isn't firing. First I set a breakpoint: 00036440222i[CPU0 ] [36440222] Stopped on MAGIC BREAKPOINT (0) [0x0000000000703044] 0008:00000000c0003044 (unk.…
user541686
  • 189,354
  • 112
  • 476
  • 821
3
votes
1 answer

How to understand and change CPU register FLAG in bochsdbg?

I can use 'r' to get the info of CPU register FLAG. 1.Can I understand by this? eflags 0x00000082: id vip vif ac vm rf nt IOPL=0 of df if tf SF zf af pf cf 0x00000082= 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 1 0 2.How to…
sam
  • 1,683
  • 3
  • 17
  • 25
3
votes
1 answer

Using grub in floppy image file to start your own kernel inside bochs

Basically I've followed the instructions here http://sig9.com/bochs-grub to create a bare image file which does nothing but lets the BIOS start GRUB. The problems are: The kernel I am writing will be 32-bit, using…
Flavius
  • 12,501
  • 13
  • 76
  • 118
3
votes
1 answer

Second stage bootLoader not loading in bochs, LINUX (ubuntu 16.04), Brokenthorn osdev series

I am following brokenthorn OS development series, until now I am able sucessfully run bootloader stage1 but there is some issue with loading second stage bootloader from FAT12 floppy in bochs emulator on linux machine(ubuntu 16.04) (It works fine in…
snehm
  • 223
  • 2
  • 12
1
2 3
8 9