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
0
votes
0 answers

Assembly code working on bochs but not on computer

I am making a bootloader which prints 3 strings. I can successfully print those strings separated by lines in bochs but cannot do so when I use Rawrite to write the 512 byte bootloader to usb and boot it. It only prints the new lines. I even…
Arjav Garg
  • 33
  • 6
0
votes
0 answers

The Kernel starts behaving abnormally when the kernel code gets a little bigger

I am developing an OS kernel. I am facing a problem that till a particular size of the kernel - 8KB it runs perfectly but as it gets just a little over 8KB, it starts behaving abnormally. The clear screen function doesn't work, the scrolling…
Anish Sharma
  • 314
  • 3
  • 18
0
votes
1 answer

load_seg_reg(ES, 0xfffc): invalid segment when trying to run kernel code from boot sector

So im building a simple OS and i am running into the error stated above when calling the kernel code from the boot sector. I've spent a few days struggling and still at a dead end. The code fails at call KERNEL_OFFSET. I know its failing because im…
0
votes
0 answers

Non-existing segment access in Bochs emulation

I was writing a boot loader and when I run it using Bochs, I get the error "Non-existing segment access". I cant find the problem. My code is as follows : [bits 16] [org 0x7c00] %include 'include\disp.asm' start: xor ax, ax mov ds, ax …
Panther Coder
  • 1,058
  • 1
  • 16
  • 43
0
votes
0 answers

Why this code is crashing when call procedure in loop?

I tried to write own simple bootloader, I had this code: .code16 # Generate 16 bit code .globl set_protected_mode .globl set_real_mode __init: call set_protected_mode call set_real_mode jmp __init # jmp init # Jump to init function in…
krystian71115
  • 1,927
  • 17
  • 36
0
votes
1 answer

Bochs: assembly far jump got lost in bogus memory area (invalid opcode error)

I started to develop a small toy operating system in (NASM) assembly, just for my entertainment. I've written a bootloader that loads the first (and only one) file from a FAT12 file system called "kernel.sys" into the memory at offset 0x7E00. In…
Kerberos
  • 67
  • 7
0
votes
1 answer

An amazing phenomenon when I call a function to print a character

I'm developing my own operating system. I have completed the boot sector and loaded my kernel successfully. My development environment is Ubuntu 14.04 and GCC 4.8. My kernel will run under BOCHS. I wanted to print a specific character in a specific…
0
votes
0 answers

Bochs "read beyond limit"

I am trying to boot a custom kernel in Bochs. However, when I try to run it, Bochs generates hundreds of thousands of output lines to my terminal over the span of a few seconds. All of them contain the same message: 00017895741e[CPU0 ]…
wjk
  • 1,219
  • 11
  • 27
0
votes
3 answers

Debugging with Bochs + GDB: "cannot find bounds of current function"?

I'm working on writing an OS and I'm running into problems trying to debug my code. I'm using GDB to connect to Bochs' GDB stub to "remotely" debug my kernel. Connecting works fine, as does loading debugging symbols from the kernel file. I set a…
TheArcher
  • 31
  • 1
  • 5
0
votes
0 answers

Is the BPB necessary for a bootloader to load correctly in Bochs?

I am writing a bootloader for a FAT12 floppy disk and creating an IMG image using BFI. If I remove the BPB code from my bootloader Assembly, I receive the following error in Bochs: MOV_EwSw: using of nonexisting segment register 7 This bootloader…
Michiel Pater
  • 22,377
  • 5
  • 43
  • 57
0
votes
1 answer

Set a breakpoint on GDT/LDT/IDT entery

I'm working on x86 architecture , I would like to set a breakpoint on global descriptor table entry or the interpret descriptor table entry or ldt- it means that, for example, every time a specific entry being read from idt/gdt/ldt a breakpoint will…
IceCube
  • 405
  • 1
  • 5
  • 12
0
votes
1 answer

how to compile a C program in DLX linux in Bochs

I have installed Bochs and DLX linux in it. I wrote a Hello world C program in it. But I don't know how to compile the program in it. When i type gcc hello.c i get an error saying "bash: gcc: command not found". Please suggest. Thanks
sps
  • 2,720
  • 2
  • 19
  • 38
0
votes
2 answers

VESA not working on BOCHS

I have written a simple bootloader which sets the video mode, and puts some pixels. I have tested it on Virtual box, QEMU, Dosbox and real hardware. Works great on them but not on Bochs. Mode sets correctly but pixels are not plotted. org…
0
votes
1 answer

Bochs "vgaromimage" Error?

While Testing my Boot-loader in Bochs I have used following configuration file # ROM and VGA BIOS images --------------------------------------------- romimage: file=BIOS-bochs-latest, address=0xf0000 vgaromimage: VGABIOS-lgpl-latest # boot…
Linus
  • 899
  • 3
  • 19
  • 33
0
votes
2 answers

bochs enable internal debugger

I've problems in running Bochs with the debugger. Currently I'm using Win8.1 x64, Bochs (latest version 2.6.6) is installed from the exe linked on the website, everything works but I can't find how to open the debugger. Somewhere I read that I need…
incud
  • 541
  • 1
  • 9
  • 17
1 2 3
9
10