Recently studied Wang Shuang that this "assembly language", but its experiments are Windows environment, need to use DOS.
But the most unixer, how to develop under Windows? So, use the tools under Linux.
Assembler MASM can be replaced with GCC or as or nasm
Linker Overlay linker can be replaced with LD
As for the debugger, if you are debugging a normal program, use GDB. But there is no debugger like the debug program in DOS that can directly manipulate the memory, because Linux is running in kernel protected mode, the user can not manipulate the memory freely. Maybe GdB can do the work in some way, but I didn't find the tutorial.
There is a way to solve this problem perfectly, which is to use this Dosemu simulator. It's better to use than a real DOS.
Installation under the Debian system
?
1 |
sudo apt-get install dosemu |
Enter Dosemu under Terminal, run
Exit command is Exitemu
In addition, a workaround is to install the virtual machine and mount the FreeDOS system on the virtual machine.
One more thing ... The real program apes need to know how to assemble.