CSC270 Assembling 6800 Assembly Programs on OSX/Windows
--D. Thiebaut (talk) 10:59, 19 March 2016 (EDT)
These instructions will allow you to install TASM, the Turbo Assembler, on your OSX/Windows machine, and generate listings of 6800 assembly programs.
Installation on Windows
- To download TASM, go to this page, and go to the end of the page, to find the download link.
- Follow the directions to install TASM. You won't need TLINK or any of the other executables for CSC270.
- Jump to the subsection below on testing your installation.
Installation on Mac OSX
- If you haven't already done so, you will need to install wine, which is a Windows Emulator for the Mac, and will allow you to run a large number of Windows programs on your Mac. This page has instructions on how to install wine. There are other tutorials on the Web, if this one doesn't work for you.
- To download TASM, go to this page, and go to the end of the page, to find the download link.
- The downloaded file should end up in your ~/Downloads directory.
- Double click on the tgz file you have downloaded. It should expand to a folder named TASM.
- Copy TASM32.EXE from the BIN folder into a folder where you keep all your executables. On my Mac, I keep all executable in a folder called ~/bin.
- Make sure the ~/bin folder is in your path, which is defined in your ~/.bash_profile file:
PATH=/Users/thiebaut/bin:/Users/thiebaut/Qt5.2.0/5.2.0/clang_64/bin:$PATH:.
- With your favorite editor (mine is emacs) create a new bash script called tasm. This is how I do it in a Terminal window:
cd cd bin emacs -nw tasm
- and copy the following lines in it:
#! /bin/bash wine ~/bin/TASM32.EXE $@
- (Note: there should be no space at the beginning of each line, and the #! line should be the first one in the script.)
- Make the script you just created executable:
chmod +x ~/bin/tasm
- You are now ready to test your installation.
Testing the Installation
- Still in Terminal, change to a new directory where you will keep all your 6800 assembly programs.
- Create a new file in this directory. It will contain a collection of macros that emulate all the 6800 instructions. This file is called macros.asm and is available macros.asm.