01-14-2014, 12:36 AM
Ok this should work now. Had to learn some batch script and some bash script and now it should compile on Windows with these .bat files and on linux(mac?) with the .bs files.
It does leave a bunch of build files, for now.
Here's what the no rm version looks like.
Join the Discussion at Atariage
I think this stuff could really help get things rolling where we are stuck at writing ROMS from z88 development kit
More discussion on that at Atari
See the version just before this version in action.
![[Image: 6ZPnmxE.gif]](http://i.imgur.com/6ZPnmxE.gif)
WOOOHOO.
It does leave a bunch of build files, for now.
Here's what the no rm version looks like.
Code:
REM Windows Batch Compiler Script
REM For Boriel's ZX BASIC to Aquarius Computer Catridge ROM
REM No RM version 1.0 January 13 2014
REM Write Null file, very important
ECHO NULL > Null
REM ZXB is the main SDK executable. It can act both as a compiler or as a translator:
REM http://www.boriel.com/en/software/the-zx-basic-compiler/
REM this command creates a binary machine code compilation of the 8k catridge header
REM see library/aquarisromheader16kb.bas for bigger cart.
zxb library/aquariusromheader.bas --org=0x0000
REM copy 16 BYTES header into temp files
dd ibs=1 count=16 skip=16 if=aquariusromheader.bin of=example01.tmr
REM compiling the basic program to cartridge memory
zxb example01.bas --asm --org=0xE010
zxb example01.bas --org=0xE010
REM append rom header binary to assembly code binary
copy example01.tmr /b + example01.bin /b example01.tmr
REM create an 8K empty file my settings may be wrong.
dd if=Null of=_dummybytes.bin bs=8192 count=1 seek=1
REM append the temp binary data with space to fill the 8k rom
copy example01.tmr /b + /b _dummybytes.bin example01.tmr /b
REM cleaning up old build files
REM rm _dummybytes.bin example01.bin
ECHO Writing only 8k of TMR binary to ROM file
dd ibs=1 count=8192 skip=0 if=example01.tmr of=example01.rom
Join the Discussion at Atariage
I think this stuff could really help get things rolling where we are stuck at writing ROMS from z88 development kit
More discussion on that at Atari
See the version just before this version in action.
![[Image: 6ZPnmxE.gif]](http://i.imgur.com/6ZPnmxE.gif)
WOOOHOO.