forked from MirrorRepos/RomWBW
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
2.1 KiB
48 lines
2.1 KiB
Assembling the RomWBW firmware under Linux.
|
|
|
|
This method has been used under Ubuntu Linux and may have to be adapted for
|
|
other distributions. It is a bit more involved than the Windows procedure.
|
|
|
|
What you need
|
|
You will need the TASM assembler, make, dos2unix and cpmtools.
|
|
|
|
The TASM assembler is shareware and the Linux version is only available as
|
|
source code from the Author. I found one bug during compiling version 3.2 for
|
|
Ubuntu. In /src/tasm.c change the reference CLK_TIC to CLOCKS_PER_SEC.
|
|
After compiling install the tasm executable to /usr/local/bin and the table
|
|
files to /usr/local/lib. If you choose to place them somewhere else you will
|
|
have to edit the "makefile.linux" file to suit.
|
|
|
|
The make, dos2unix and cpmtools packages are found in the Linux repository and
|
|
installed as for any other package.
|
|
|
|
Before assembly
|
|
Some changes need to be made to cater for the differences between Linux and the
|
|
DOS/Windows environments. The examples below refer to the /RomWBW/current
|
|
directory, you'll have to allow for the stable or branches directories if used.
|
|
These are all done from a terminal. (: is end of the command prompt)
|
|
|
|
1. Go to the RomWBW Source directory.e.g.
|
|
:cd /n8vem/RomWBW/current/Source
|
|
|
|
2. I have included a new makefile called "makefile.linux" in the Source
|
|
directory. Rename this to just "makefile". Edit it to suit your targets and
|
|
if you have changed the default location for TASM.
|
|
:~/RomWBW/current/Source mv makefile.linux makefile
|
|
|
|
3. The Linux version of TASM can't handle the CR-LF line endings. So from the
|
|
command prompt use dos2unix to convert all the source files.
|
|
:~/RomWBW/current/Source dos2unix -f *.asm *.inc *.z80 *.lib diskdefs
|
|
|
|
4. You'll have to alter the disk definitions for the cpmtools package to cater
|
|
for the new roms. Easiest way is to copy the one given in the source over the
|
|
old. This must be done as superuser.
|
|
:~/RomWBW/current/Source sudo cp diskdefs /etc/cpmtools/diskdefs
|
|
|
|
5. From now on it's the same as using the DOS/Windows instructions in Build.txt.
|
|
Make any last changes, go to the Source directory and make
|
|
:~/RomWBW/current/Source make clean ; make
|
|
|
|
DGG
|
|
|
|
|
|
|