ROM to RAM ToolKit Conversion
Posted: Wed Mar 02, 2016 8:43 am
Hi All,
Has anyone thought of converting ROM ToolKits into their RAM versions? Using RAM version would not require plugging ROM dongle into a QL slot.
I already tested standard TK2 by loading it into RAM and calling its initilisation routine by skipping ROM header - $4AFB0001 (pls see QL Technical Guide 2.4 and 8.0)
This works with TK2 ROM extension w/o need of any conversion as described at Dillwyn's site.
This possibly requires the ROM code is pure relocatable. But how about some other ROMs namely Metacomco? Is there a way to provide RAM version easilly for them?
I looked at QLC_ROM it has this header, the word pointer at offset $6 is actually $0000, which does not make much sense as it cannot be initialised at that offset.
The ROM gets initialised under uQLx emulator on startup normally, but it does not put up Metacomco copyright message on F1/F2 screen, though.
Following Metacomco QLC manual, ROM command verifies its integrity, and it reports ROM is alright.
Many thanks
Tom
Has anyone thought of converting ROM ToolKits into their RAM versions? Using RAM version would not require plugging ROM dongle into a QL slot.
I already tested standard TK2 by loading it into RAM and calling its initilisation routine by skipping ROM header - $4AFB0001 (pls see QL Technical Guide 2.4 and 8.0)
This works with TK2 ROM extension w/o need of any conversion as described at Dillwyn's site.
Code: Select all
ADR=RESPR(16384)
LBYTES TK2_EXT, ADR
CALL ADR + PEEK_W(ADR+6)
I looked at QLC_ROM it has this header, the word pointer at offset $6 is actually $0000, which does not make much sense as it cannot be initialised at that offset.
Code: Select all
00000000 4a fb 00 01 00 26 00 00 00 00 20 20 20 20 20 20 |J....&.... |
00000010 20 20 20 20 51 4c 43 20 20 56 65 72 73 69 6f 6e | QLC Version|
00000020 20 33 2e 30 32 0a 00 05 00 32 03 52 4f 4d 00 92 | 3.02....2.ROM..|
Following Metacomco QLC manual, ROM command verifies its integrity, and it reports ROM is alright.
Many thanks
Tom