This program was developed to learn instructions of 8086 processor, it was a task for the Computer engineer course at university of PUC Campinas brazil.
It will be necessary to run inside a DOS environment, of course it's not easy to find a original computer with DOS on now's days, however we can do that by using virtual machine like DOSBOX
-
First download the DOSBOX and follow the official documentation to install it;
-
It will be necessary to mount a volume from the host machine into the DOSBOX, for that, use the command bellow
MOUNT C PATH_ROOT_PROJECT
Change the PATH_ROOT_PROJECT with the path for your root project within your host computer
-
Now you can enter into the directory by typing
C: C
By performing the
<dir>
command you should be able to see the files from that mouted point
-
To compile we'll use two auxiliary programs, which are
TASM.EXE
andTLINK.EXE
. both of them is insie root folder of this project. to convert the .ASM into a .OBJ run the following commandTASM.EXE 2048.ASM
By typing the command
<dir>
again you should be able to see the 2048.OBJ as an output from the command above. -
To compile and generates an .EXE it will be required to use TLINK.EXE program as shown bellow
TLINK.EXE 2048.obj
-
Well done! at this point 2048 is already compiled! to run it use the following command
2048.EXE
The performance can be increased by typing the keys Ctrl+f12
or decrease using Ctrl+f11
, it is recommended to decrease velocity at least once to check what is happening on the screen during the screen print process