Use Bochs in Ubuntu to simulate freedos learning 8086 assembly and debug debugging

Source: Internet
Author: User

I recently learned the assembly language, because I am using Ubuntu, and the examples in the book are all debugging in the dos environment, so I used Bochs to install freedos for debugging.

CentOS 6.0 source code compilation and installation of Bochs

Install Bochs 2.6 In openSUSE

Build and adjust the runtime environment of Linux0.11 -- Bochs

Install Bochs with debugging functions in Ubuntu 12.04

Problems encountered during Bochs installation in Ubuntu and Solutions

1. Install bochs

First download the latest version to Bochs: http://bochs.sourceforge.net/grrent.html

Download bochs-2.4.6.tar.gz. The installation process is similar to this:

$ Tar zxvf bochs-2.4.6.tar.gz

$ Cd bochs-2.4.6.

$./Configure -- enable-debugger -- enable-disasm

$ Make

$ Sudo make install

-- Enable-debugger: enable debugging.

2. Download freedos

Download the freedosimage at http://bochs.sourceforge.net/diskimages.html.

Decompress the package directly to the home directory and put all the files in it under home.

Enter the following command:

Bochs

Enter again

Then enter: c

Enter

3. Enter debug in freedos to start debugging. The command is basically the same as ms-dos.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.