Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
zxbasic compiler for Sega Master System?
#5
compiled successfully from there - i just needed to find a binary wla-dx package for using it, and adapted that build.bat into this build.sh:

Code:
# @echo off
# rem :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# rem :: Do not edit anything below here unless you know what    ::
# rem :: you're doing!                                           ::
# rem :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

# wla-z80 and wlalink found from an rpm search for wla-dx
# at Debian/Ubuntu: i made a tarball from it and istalled with
# sudo tar -zxvf wla-dx_9.4a-2.96_i586.tar.gz -C /
# (please make sure that 'usr' folder appear when opening this .tar.gz with FileRoller, for checking)

# rem Cleanup to avoid confusion
# if exist object.o del object.o
rm object.o

# rem Compile
# zxb test.zxb --asm
#? python zxb-sms.py test.zxb --asm
zxb.py test.zxb --asm

# python zxb2wla.py test.asm
python zxb2wla.py test.asm

# wla\wla-z80.exe -o test.wla.asm object.o
wla-z80 -o test.wla.asm object.o

# rem Make linkfile
# echo [objects]>linkfile
# echo object.o>>linkfile
echo [objects] > linkfile
echo object.o >> linkfile

# rem Link
# wla\wlalink.exe -drvs linkfile output.sms
wlalink -drvs linkfile output.sms

# rem Fixup for eSMS
# if exist output.sms.sym del output.sms.sym
# ren output.sym output.sms.sym
rm output.sms.sym
mv output.sym output.sms.sym

# rem Cleanup to avoid mess
# if exist linkfile del linkfile
# if exist object.o del object.o
rm linkfile
rm object.o

# run Osmose emulator with the result
osmose output.sms
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)