How to run 8086 Assembly programs on your Android phone |
Introduction
Assembly Language is closest to the actual machine level language.It helps to understand the interaction between a software and the hardware.Also, It helps visualize the overall picture of programming especially when you have learned HLL(High-Level Languages) such as C, Java, Python, etc.
Now we can learn Assembly Programming on our Android smartphones. It will help students who don't have laptops to learn assembly language.
MASM(Microsoft Macro Assembler)
Now, that we have understood the crux of learning Assembly Level Programs.Let us get started.
To assemble an assembly level program we need a specialized program which can convert the instructions in machine level object code.This program is called an Assembler.Here we are going to use MASM(Microsoft Macro Assembler) to assemble our 8086 programs.We need a specialized environment to run our programs.We will use DOS-BOX as an environment to run the program.
Apps We Will Need
1. aFreeBox by Fishstix
This will provide DOS-BOX for MASM.
2. Hacker's Keyboard by Klaus Weidner
Use this keyboard if your default keyboard is not working.
Files we will need:
1. MASM
This zip file contains all the necessary tools to run the programs.
Google Drive Link
2. A sample program to check if the program is executed correctly.
Add.asm
STEPS:
1.Install the aFreeBox app from PlayStore.
2.As a default, DOS-BOX will mount the Download folder of internal storage.
3.Unzip 8086.zip file and copy the sample program "add.asm" into the 8086 folder.
4.Place the 8086 folder into Download folder of the Internal Storage of your phone.
5.Return to the aFreeBox app and click on the Keyboard icon.If the keyboard does not work install the hackers keyboard.
6.Type cd 8086 and hit return key.
7.Type "masm add.asm;" without quotes.This will assemble the program.
8.If no errors are produced, then type "link add.obj;" without quotes.This will link the program and produce a single executable file.
9.Finally, debug the program to see the register contents.Type "debug add.exe" without quotes.Then type "g" without quotes, next to the hyphen to see the register contents.
10.Addition of two numbers will be displayed in AX register.
Conclusion:
Please comment below if you have any questions or problems.If you liked this guide, please share.