[A83] Re: TASM Compiling for 83+


[Prev][Next][Index][Thread]

[A83] Re: TASM Compiling for 83+




Save your code in the tasm directory. Open a DOS box, go to the tasm 
directory and type: (note: if you use '.asm' then change '.z80' into '.asm')

tasm -t80 -b -i prgmname.z80 prgmname.bin<enter>
devpac8x prgmname<enter>

If your code doesn't contain any errors, things should work out just fine.

Then, to make things easier, because the above code requires quite a lot of 
typing, people made batch programs. To make one of your own: open a simple 
text editor, like Notepad. Then type the following:

echo.
echo Assembling %1.z80...
echo.
tasm -t80 -b -i %1.z80 %1.bin
echo.
if errorlevel 1 goto error
devpac8x %1> nul
echo Done
goto done
:error
echo Error while assembling %1.z80
:done
if exist %1.lst del %1.lst
if exist %1.bin del %1.bin
echo.

Save this file as asm.bat in your tasm directory. Now when you want to 
assemble a program: save your code in the tasm directory, open a DOS-box, 
goto the tasm directory and type:

asm prgmname<enter>

If your code contains errors, you will get an error message.

Hope this helps. If you still have questions, ask them.

Tijl Coosemans
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.