0% found this document useful (0 votes)
226 views

Steps To Install and Use Dosbox For 64-Bit OS

The document provides steps to install and use Dosbox for 64-bit operating systems to assemble and debug assembly programs. The steps are to: 1) download and install Dosbox, 2) mount a drive letter in Dosbox to the path containing NASM and AFD, and 3) use commands in Dosbox like nasm and afd to assemble files and debug them, with the output files being created in the actual mounted path. The process of mounting the drive letter must be repeated each time Dosbox is launched.

Uploaded by

Ali Haider
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
226 views

Steps To Install and Use Dosbox For 64-Bit OS

The document provides steps to install and use Dosbox for 64-bit operating systems to assemble and debug assembly programs. The steps are to: 1) download and install Dosbox, 2) mount a drive letter in Dosbox to the path containing NASM and AFD, and 3) use commands in Dosbox like nasm and afd to assemble files and debug them, with the output files being created in the actual mounted path. The process of mounting the drive letter must be repeated each time Dosbox is launched.

Uploaded by

Ali Haider
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 6

Steps to install and use Dosbox for 64-bit operating systems

Suppose the NASM assembler and AFD debugger are stored at the following path on your computer.
Y:\Assembly
And you have created a source file named ex01.asm as shown in the fig 1.0 below.

Fig 1.0 (Directory path of assembler and debugger)


Considering the given scenario, you must follow these steps to install and use Dosbox for assembling and
debugging an assembly program on 64-bit operating systems.

Step 1:
Login to your VULMS and download Dosbox setup from Downloads tab inside Course Website page of CS401. It
is shown in the fig 1.1

Fig 1.1 (Link for downloading DosBox application)

Step 2:
After downloading the Dosbox setup execute and install it on your required path. Once installation is completed, go
in the directory where it is installed and run dosbox application (fig 1.2).

Fig 1.2 (Dosbox application icon)


You can do the same by running this application by shortcut icons on desktop or in start menu.

Step 3:
Once you execute the dosbox application, a command prompt will be visible on your screen. First of all you have to
mount a drive letter to the path of Y:\Assembly. Mounting is like making a shortcut to the required path with a
single drive letter. For example:
Mount M Y:\Assembly
Now drive letter M is same as path Y:\Assembly (fig 1.3)

Fig 1.3 (Mounting a drive letter to required path)

Step 4:
After you see the message of successful mounting, write m: and press Enter. The command prompt will change
Z:\> to M:\>
Writing any command here will be same as you write in the path Y:\Assembly in command prompt. For example
your ex01.asm file is stored at path Y:\Assembly. If you write command nasm ex01.asm o ex01.com l ex01.lst
here, it will assemble ex01.asm file and produce the output files ex01.com and ex01.lst (fig 1.4 and 1.5)

Fig 1.4 (Assembling the .asm file and producing output files)
You can see the output files are created at the path Y:\Assembly in fig 1.5

Fig 1.5 (Output files created at the path Y:\Assembly)


Now you can load .com file in the debugger by writing the command afd ex01.com

NOTE:
You must repeat the process of mounting a drive letter to the path where you have stored NASM and AFD debugger
each time Dosbox application is executed. Also drive letter M is used as an example. You can use any other drive
letter you want to.

You might also like