This repository contains MASM Assembly Language programs from my 5th semester lab work. These programs are aimed to help beginners learn and understand basic assembly programming concepts.
-
Set up MASM and DOSBox:
Follow this video tutorial to download and set up MASM in DOSBox:
👉 How to Download MASM and Mount it in DOSBox -
Place
.asmFiles:- 🔴 Ensure all
.asmfiles are placed in the same folder where you mounted MASM in DOSBox (e.g.,C:\Dbox). - This step is necessary for MASM and DOSBox to locate and assemble your files without errors.
- 🔴 Ensure all
-
Common MASM Commands:
Use the following commands to assemble, link, and execute your programs in MASM:mount c c:\< FolderPath > # Mount the folder with MASM and .asm files c: # Switch to the mounted directory masm filename.asm # Assemble the .asm file link filename.obj # Link the object file debug filename.exe # Debug the executable
Inside the debugger:
u: View codeg: Execute the programd 076A:0: Inspect memory (example)q: Quit the debugger
Addition of two 16-bit numbersAddition of two 32-bit numbersSubtraction of two 16-bit numbersSubtraction of two 32-bit numbersMultiplication of two 16-bit numbersDivision of two 16-bit numbersSorting an array of 16-bit numbersSearching for a 16-bit number in an array
- MASM - Microsoft Macro Assembler
- DOSBox Emulator - For running MASM in modern systems
This project is licensed under the MIT License. Feel free to use the code with proper attribution.
Mathew Jobey
GitHub Profile
If you find this helpful or want to suggest improvements, feel free to open an issue or contribute! 🙂