Assembling an ALP program using TASM
We assume you already have tasm installed in your system
- Open windows command prompt and navigate to TASM folder
- Open editor using the following command
Here hello.asm is the name of the file we want to edit.
This will open the editor window.
- Type in the assembly language program you need.
For this example
We've shown a simple "hello world" program.
Here is the code for your reference.
print macro m
message db 10,13, "Hello world $"
- Save the code and exit the editor using the file menu and return
to command prompt.
- To assemble the file,type the following command
Here "tasm" is the name of the assembler (Turo Assembler) and
hello.asm is the file which is to be assembled.
The assembler will produce an object file "hello.obj" if no errors
are there in the program.
If there are errors in your code, again launch the editor and modify
your code to remove them and try again untill all errors are removed.
- This file is taken by the linker and an executable(.exe) file is
- Finally,you can run the program using the .exe file hello.exe
Here is a screenshot of the exeuting program.