[Assembly] Guide assembly run by TASM and emu8086
1. Run by TASM Assembly
First you download the file TASM.zip the extract to somewhere you want. Here his right to Desktop, you can drive to the C or 1 Other drives. Unzip you will have 1 folder in a file that is available welcom.asm and BIN directory contains the translation.
Now we will run welcom.asm, other files when you run the same writing.
– Open cmd up (Ctrl + R then type cmd and enter).
– Move to the directory where you have downloaded TASM (using the cd command).
– Providing welcom.asm file by typing the file welcom.obj: bintasm welcom.asm. When translated into the following results:
– Villa is linked to create .exe file: bintlink welcom.obj. (We can use the file command tlink welcom.asm but should be used to avoid errors obj file).
– Finally, run the file welcom.exe only: welcom.exe
If you use win 64 bit or for any reason that file tasm.exe not run through DOSBox use the latest post: Programming asembly On Win 7 64 bit
2. Run Assembly using emu8086
This is very useful software can help us prepare, translate, run and debug programs easily. Download emu8086 (get key file by running the SND-E8086407-KG).
Install then we have the following interface emun8086:
you teach yourself calculate the square root using the asm :))
About algorithm you can see here: https://cachhoc.net/2013/10/04/thuat-toan-tinh-can-bac-2/
But with asm calculate it difficult for us to handle real numbers, the real numbers are not supported asm.