Skip to content

Commit d1658e3

Browse files
author
Tom Seddon
committed
Add relocatable version doc bits. Remove tom_rtest target.
tom_rtest is going to be covered by something in acorn_mos_disassembly, which will also serve as an example for general tube_relocation.py use.
1 parent d924dbf commit d1658e3

File tree

3 files changed

+28
-19
lines changed

3 files changed

+28
-19
lines changed

Makefile

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ build:
5151
$(_V)$(PYTHON) submodules/beeb/bin/tube_relocation.py create -o $(DEST)/rbasiced.relocation.dat $(DEST)/rbasiced.rom $(DEST)/rbasiced2.rom
5252

5353
$(_V)$(SHELLCMD) stat --size-budget=16384 $(DEST)/basiced_.rom $(DEST)/basiced.rom $(DEST)/hibasiced.rom $(DEST)/elkbasiced.rom $(DEST)/elkhibasiced.rom $(DEST)/rbasiced.rom
54+
$(_V)$(SHELLCMD) stat $(DEST)/rbasiced.relocation.dat
5455

5556
$(_V)$(SHELLCMD) sha1 "--ignore=$(VER)" $(DEST)/basiced.rom
5657

@@ -93,19 +94,3 @@ clean:
9394

9495
##########################################################################
9596
##########################################################################
96-
97-
# Test the relocating version. For me, on my Windows laptop. Build DFS
98-
# 2.45 for MOS 3.50r with relocation tables for BASIC, EDIT, and BASIC
99-
# Editor.
100-
101-
.PHONY:tom_rtest
102-
tom_rtest: _MOS320=../mos320
103-
tom_rtest: _DEST=$(DEST)/rbasiced
104-
tom_rtest: build
105-
$(_V)cd $(_MOS320) && make
106-
$(_V)$(SHELLCMD) mkdir "$(_DEST)"
107-
$(_V)$(SHELLCMD) copy-file "$(_MOS320)/orig/350/basic.4r32.rom" "$(_DEST)/"
108-
$(_V)$(SHELLCMD) copy-file "$(_MOS320)/orig/350/edit.1.50r.rom" "$(_DEST)/"
109-
$(_V)$(SHELLCMD) copy-file "$(_MOS320)/orig/350/dfs.2.45.rom" "$(_DEST)/"
110-
$(_V)$(SHELLCMD) copy-file "$(DEST)/rbasiced.rom" "$(_DEST)/"
111-
$(_V)$(PYTHON) submodules/beeb/bin/tube_relocation.py --verbose set-multi --bitmap-rom "$(_DEST)/dfs.2.45.rom" 9 --begin 0xaf00 --end 0xb800 --rom "$(_DEST)/basic.4r32.rom" "$(_MOS320)/build/basic.4r32.relocation.dat" --rom "$(_DEST)/edit.1.50r.rom" "$(_MOS320)/build/edit.1.50r.relocation.dat" --rom "$(_DEST)/rbasiced.rom" "$(DEST)/rbasiced.relocation.dat" --set-multi

docs/build.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ Prerequisites (Windows):
1212

1313
To build, type `make`.
1414

15-
The ROM images are written to a folder called `.build`: `basiced.rom`
16-
and `hibasiced.rom`. The Electron ROM images are called
17-
`elkbasiced.rom` and `elkhibasiced.rom`.
15+
The ROM images are written to a folder called `.build`:
16+
17+
- `basiced.rom` - The BASIC Editor, BBC version
18+
- `hibasiced.rom` - The HIBASIC Editor, BBC version
19+
- `elkbasiced.com` - The BASIC Editor, Electron version
20+
- `elkhibasiced.com` - The HIBASIC Editor, Electron version
21+
- `rbasiced.rom` `rbasiced.relocation.dat` - The BASIC Editor, relocatable MOS 3.50 version

docs/doc.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,3 +221,23 @@ FUNC + various letters and punctuation characters:
221221
Note that these shortcuts prevent you from using FUNC + the letter keys to
222222
obtain the keyword firmkeys that you would normally get in BASIC on the
223223
Electron.
224+
225+
# The BASIC Editor (relocatable) (MOS 3.50 only) (DIY required)
226+
227+
The BASIC Editor (relocatable) is an ordinary-looking sideways ROM
228+
containing The BASIC Editor. But, in conjunction with its relocation
229+
bitmap (supplied), and a bit of elbow grease (this part is up to you,
230+
sorry!), it can also act as The HIBASIC Editor when used with a 6502
231+
second processor. Both ROMs in 1 ROM bank!
232+
233+
These files can be used with my `tube_relocation` Python 3.x script:
234+
https://github.com/tom-seddon/beeb/tree/master/bin#tube_relocation -
235+
the script will insert the relocation bitmap into a spare region in
236+
some other ROM, and update the ROM image updated to refer to it.
237+
238+
You should be able to make this work with standard MOS 3.50, but my
239+
refreshed MOS 3.50 versions will give you more options (and noticeably
240+
improve the relocation speed):
241+
https://github.com/tom-seddon/acorn_mos_disassembly/blob/master/docs/refresh.md
242+
243+
Setting this up is currently a DIY job.

0 commit comments

Comments
 (0)