-
Experiment 1: Addition of Two Numbers
Perform the addition of two numbers using the 8086 microprocessor. -
Experiment 2: Arithmetic Operations on 8-bit Numbers
Perform arithmetic operations (addition, subtraction, multiplication, and division) on two 8-bit numbers using the 8086 microprocessor. -
Experiment 3: Arithmetic Operations on 16-bit Numbers
Perform arithmetic operations (addition, subtraction, multiplication, and division) on two 16-bit numbers using the 8086 microprocessor. -
Experiment 4: Smallest and Largest Number
Find the smallest and largest number from a set of entered data bytes/words. -
Experiment 5: Sorting Data in Ascending and Descending Order
Arrange five data bytes/words in ascending and descending order. -
Experiment 6: Square and Cube Root Calculation
Perform the calculation of the square of a number and the cube root of a number. -
Experiment 7: Segregating Odd and Even Numbers
Segregate an array of numbers into odd and even parts. -
Experiment 8: Average and Factorial Calculation
Calculate the average of five 8-bit numbers and compute the factorial of a number. -
Experiment 9: Palindrome Check and BCD to Binary Conversion
Check whether a string is a palindrome and convert a BCD number into binary format.
Follow these steps to set up MASM (Microsoft Macro Assembler) on your Windows PC using DOSBox.
First, you need to download and install DOSBox:
- Visit this link: Download DOSBox
- Click on Download.
- Wait 5 seconds for the download to start automatically.
- After downloading, install DOSBox on your PC.
If you need help installing DOSBox, refer to this Guide on Installing DOSBox on Windows.
- Visit this link: Download 8086.rar (Replace with the actual link)
- Click on Download.
- Open the downloaded ZIP file from Step 2.
- Extract and copy the
8086
folder to the C: drive.
-
Open your favorite code editor.
-
Enter the following code:
; Hello World program by 360 Tech Explorer’s DATAS SEGMENT STRING DB 'Hello World!',13,10,'$' DATAS ENDS CODES SEGMENT ASSUME CS:CODES, DS:DATAS START: MOV AX, DATAS MOV DS, AX LEA DX, STRING MOV AH, 9 INT 21H MOV AH, 4CH INT 21H CODES ENDS END START
-
Save this file with the
.asm
file extension (e.g.,hello.asm
).
-
Open DOSBox.
-
Enter the following command to mount the
8086
directory as a C drive:Z:> mount c c:\8086
-
Navigate to drive C:
Z:> c:
-
If you want to create a new assembly file:
C:> edit file_name.asm
-
If you already have the assembly file, follow these steps:
-
Copy your assembly file to the
C:\8086
folder. -
Run the following commands:
C:> masm your_file_here.asm C:> link your_file_here.obj C:> your_file_here.exe
-
You've successfully set up MASM and executed an assembly program on Windows using DOSBox.
Prepared by:
Name: Jjateen Gundesha
Registration Number: BT22ECI002
If you found this work helpful, please don’t forget to star this repository to show your appreciation! 😊