Are you learning Assembly language, and confused about how to compile assembly file?
TASM20 is one of assembly compilers that works with Windows XP and Windows 2000 operating system. However, it does not work with Windows 7 64-bit operating system.
If you are using Windows XP or Windows 2000, you can try the following steps to compile and run assembly file.
To download TASM20, the compiler used for assembly file, clickhere.
Assumption: The Tasm.exe & Tlink.exe files used to compile assembly file are located at C:\tasm20\TASM.
1. Open command prompt by pressing Windows + R, or go toStart menu -> Run, then type "cmd" (without quotes).
2. Go to the folder where the Tasm.exe & Tlink.exe files used to compile assembly file are located, i.e. C:\tasm20\TASM.
3. For instance, we have made an assembly file named coba.asm used to print character 'A' as following:
4. Commands used:
- To compile the assembly file, use command:
After executing the command above, an object file (coba.asm) will be created.
- To create .COM file, use command:
- To run the result (.COM file), use command:
5. That's all, folks :)
TASM20 is one of assembly compilers that works with Windows XP and Windows 2000 operating system. However, it does not work with Windows 7 64-bit operating system.
If you are using Windows XP or Windows 2000, you can try the following steps to compile and run assembly file.
To download TASM20, the compiler used for assembly file, clickhere.
Assumption: The Tasm.exe & Tlink.exe files used to compile assembly file are located at C:\tasm20\TASM.
1. Open command prompt by pressing Windows + R, or go toStart menu -> Run, then type "cmd" (without quotes).
2. Go to the folder where the Tasm.exe & Tlink.exe files used to compile assembly file are located, i.e. C:\tasm20\TASM.
cd\tasm20\tasm
4. Commands used:
- To compile the assembly file, use command:
tasm <asm_filename>.asme.g.
tasm coba.asm
After executing the command above, an object file (coba.asm) will be created.
- To create .COM file, use command:
tlink /t <obj_filename>.obje.g.
tlink /t coba.obj
- To run the result (.COM file), use command:
<com_filename>e.g.
coba
5. That's all, folks :)
No comments:
Post a Comment