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/

150 questions
10
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/).
assemblylearner
  • 101
  • 1
  • 3
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
8
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
  • 453
  • 1
  • 5
  • 17
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
  • 452
  • 5
  • 10
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
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
  • 509
  • 3
  • 8
  • 21
6
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
  • 2,049
  • 3
  • 20
  • 27
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
  • 191
  • 4
  • 18
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,375
  • 1
  • 22
  • 27
4
votes
0 answers

Raw disk image of a simple bootloader works on QEMU but Bochs displays black screen only

Edit: So I got things working by not using Bochs from apt but compile from source. Does anyone know how they are different? I am trying to make a bootloader that simply displays the string "hello, world" on the screen. I created a raw disk image…
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
2 answers

Is there a way to skip the Bochs debug command line?

I have the debug-enabled version of bochs. Although I occasionally need debug mode, most of the time, I want to launch bochs right from the terminal without stopping to press "c" on the debug command line. Is there a setting that will do this (that…
Zack
  • 6,232
  • 8
  • 38
  • 68
4
votes
1 answer

Printing characters to screen ASM in protected mode

I'm trying to enter the protected mode and then print out "Hi" But instead it just prints "Loading OS" from my bios interrupt call (which happened before entering pmode) And nothing else. My Bootloader.asm %DEFINE KERNEL_LOAD_OFFSET 0x1000 org…
Jiří Velek
  • 153
  • 2
  • 12
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
  • 2
  • 11
4
votes
1 answer

Bochs with graphics

I am using Bochs on Linux. It works fine but there is a problem I haven't managed to cope with. I get the vga-info (available modes, address of linear framebuffer(LFB)) and then switch to 1024*768*24 in real mode. According to the vga-info mode 118h…
1
2 3
9 10