Retro programming in Borland Turbo Assembler
To build and run the Borland Turbo Assembler virus programs, you must first install the following tools:
$ sudo zypper install dosbox mtools p7zip-full
$ sudo apt install dosbox mtools p7zip-full
When starting dosbox
the first time, the configuration file ~/.dosbox/dosbox-0.74-2.conf
will be generated
-
Download
Borland Turbo Assembler 4.0 (3.5-1.44mb).7z
-
Create a directory which will contain the DOS C: drive
$ mkdir ~/DOSBox
-
Extract the downloaded Borland Turbo Assembler archive
$ 7z x "Borland Turbo Assembler 4.0 (3.5-1.44mb).7z"
-
Extract the Borland Turbo Assembler disk images
$ cd "Borland Turbo Assembler 4.0 (3.5-1.44mb).7z"/ $ mkdir tasminst $ for i in disk01.img disk02.img disk03.img; do echo $i; mcopy -m -i $i :: tasminst; done
-
Move the extracted files to the DOS C: drive
$ mv tasminst ~/DOSBox/
-
Configure DOSBox
Edit
~/.dosbox/dosbox-0.74-2.conf
and add the following autoexec options[autoexec] mount c ~/DOSBox path %PATH%;C:\TASM\BIN c:
-
Start
dosbox
and execute the Borland Turbo Assembler installation program$ dosbox C:\> cd tasminst C:\TASMINST> install.exe
In the installation program, select the following options
Enter the SOURCE drive to use: C Enter the SOURCE Path: \TASMINST TASM Directory [ C:\TASM ] Windows Directory [ C:\WINDOWS ] 16-bit command line tools [ Yes ] 32-bit command line tools [ No ] Turbo Debugger for Windows [ No ] Turbo Debugger for DOS [ Yes ] Turbo Debugger for Win32 [ No ] Examples [ No ] Documentation Files [ No ] Start Installation
-
Download ASM Edit
$ curl -O http://www.o-love.net/asmedit/aedt182b.zip
-
Extract the downloaded ASM Edit archive
$ unzip aedt182b.zip -d aedtinst/
-
Move the extracted files to the DOS C: drive
$ mv aedtinst ~/DOSBox/
-
Configure DOSBox
Edit
~/.dosbox/dosbox-0.74-2.conf
and add the following autoexec options[autoexec] path %PATH%;C:\ASMEDIT
-
Start
dosbox
and execute the ASM Edit installation program$ dosbox C:\> cd aedtinst C:\AEDTINST> install.exe
In the installation program, select the following options
Press Alt+I to Begin install Target path: C:\ASMEDIT Press Alt+X to Exit
Link the dos-virus
git repository to the DOS C: drive
$ ln -s ~/git/github/dos-virus ~/DOSBox/virus
- Execute build script
The virus programs will be located in the
C:\VIRUS> buildall.bat
C:\VIRUS\BUILD
directory
-
Start ASM Edit
C:\VIRUS> asmshell
-
Configure ASM Edit
Press
ALT+O
for optionsSelect
External programs
,Assembler
,user defined
,Edit
and type in the following optionsProgram title: TASM Program path: C:\TASM\BIN\TASM.EXE Command line: /w1/m/t !ACMPL,!ANAME,!ANAME
Select
External programs
,Linker
,user defined
,Edit
and type in the following optionsProgram title: TLINK Program path: C:\TASM\BIN\TLINK.EXE Command line: !ANAME!OBJFL,!ANAME!TARGT,!ANAME.MAP,!LIBFL,!MKCOM
Select
Directories
and type in the following directoriesASM files search path: C:\VIRUS\SRC COM, EXE, LIB and OBJ: C:\VIRUS\BUILD Includes and Macros: C:\VIRUS\SRC
Select
Environment
,Preferences
and the following optionsAuto save: [ ] Desktop
Select
Environment
,Editor
and the following options[ ] Create backup files
Select
Save
-
Open virus source file
Press
F3
to open file -
Build virus program
Press
Alt-A
and then pressAssemble
to assemble the filePress
Alt-A
and then pressLink
to link the fileThe virus programs will be located in the
C:\VIRUS\BUILD
directory
Licensed under MIT license. See LICENSE for more information.
- Johan Gardhage