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.confand add the following autoexec options[autoexec] mount c ~/DOSBox path %PATH%;C:\TASM\BIN c: -
Start
dosboxand execute the Borland Turbo Assembler installation program$ dosbox C:\> cd tasminst C:\TASMINST> install.exeIn 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.confand add the following autoexec options[autoexec] path %PATH%;C:\ASMEDIT -
Start
dosboxand execute the ASM Edit installation program$ dosbox C:\> cd aedtinst C:\AEDTINST> install.exeIn 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.batC:\VIRUS\BUILDdirectory
-
Start ASM Edit
C:\VIRUS> asmshell -
Configure ASM Edit
Press
ALT+Ofor optionsSelect
External programs,Assembler,user defined,Editand type in the following optionsProgram title: TASM Program path: C:\TASM\BIN\TASM.EXE Command line: /w1/m/t !ACMPL,!ANAME,!ANAMESelect
External programs,Linker,user defined,Editand type in the following optionsProgram title: TLINK Program path: C:\TASM\BIN\TLINK.EXE Command line: !ANAME!OBJFL,!ANAME!TARGT,!ANAME.MAP,!LIBFL,!MKCOMSelect
Directoriesand type in the following directoriesASM files search path: C:\VIRUS\SRC COM, EXE, LIB and OBJ: C:\VIRUS\BUILD Includes and Macros: C:\VIRUS\SRCSelect
Environment,Preferencesand the following optionsAuto save: [ ] DesktopSelect
Environment,Editorand the following options[ ] Create backup filesSelect
Save -
Open virus source file
Press
F3to open file -
Build virus program
Press
Alt-Aand then pressAssembleto assemble the filePress
Alt-Aand then pressLinkto link the fileThe virus programs will be located in the
C:\VIRUS\BUILDdirectory
Licensed under MIT license. See LICENSE for more information.
- Johan Gardhage
