Build scripts for combo rom image

This commit is contained in:
Ben Chong
2017-06-18 06:31:07 -07:00
parent eaf0e53035
commit 4ab6048565
3 changed files with 18 additions and 0 deletions

10
build/README.md Normal file
View File

@@ -0,0 +1,10 @@
<b>Building Monitor/Debugger+EhBASIC ROM</b>
<p>
The shell scripts here are used to build the combo Monitor/Debugger and EhBASIC ROM image.
<p>
The assembler used here is asmx which can be found here: <a href="http://xi6.com/projects/asmx/">http://xi6.com/projects/asmx/</a>.
<p>
<b>buildit.sh</b> should be used in the same folder as the EhBASIC source code. It builds a binary for code in addresses $8000 to $f000. The actual EhBASIC code starts from $c100 (remember that I/O is from $c000 to $c0ff).
<p>
<b>buildrom.sh</b> should be used in the same folder as the monitor source code. It builds the monitor for code in addresses $f000 to $ffff. After that, it concatentes the EhBASIC binary with the monitor binary to produce a 32KB ROM image.

3
build/buildit.sh Executable file
View File

@@ -0,0 +1,3 @@
# /bin/sh
asmx -l -b 8000h-f000h -e -C 6502 basic.asm
ls -la *.bin

5
build/buildrom.sh Executable file
View File

@@ -0,0 +1,5 @@
# /bin/sh
asmx -l -b f000h-ffffh -e -C 6502 sbc.asm
ls -la *.bin
cat ../ehbasic/basic.asm.bin sbc.asm.bin > monbas6502.rom
ls -la mon*.rom