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.