On Thu, 28 Feb 2013, Chris Tofu wrote:
But the burning question is could you fiddle with the
extension rom code
and use it as a loadable device driver? After all you could transfer rom
BASIC to a disk file and run it that way.
It is possible that it consists of a replacement INT10h plus code
that will repoint the 10h position of the IVT (Interrupt Vector Table)
(00000:0040h?) to point to the entry point of the replacement.
If so, then the "loadable driver" should contain the relevant
memory resident code (replacement INT10h?), code to repoint
the IVT 10h entry to point to WHEREVER it ended up in memory,
and then TSR ("Terminate and Stay Resident") To avoid leaving
anything unnecessary and extraneous behind taking up space in
RAM, the "loadable driver" should be a .COM file that starts
with a jump to the loader, then the code to remain resident,
and then the loader, which will set the end point of the TSR
portion to the entry point of the loader. That will waste
the space of a 2 byte relative JMP. But, since leaving stuff
resident is on 16 byte boundaries, we can live with that.
It is also possible to do some clever tricks to load it in as
an "Installable device driver", which means that it will come
in with CONFIG.SYS, rather than wait for AUTOEXEC processing.
On the Sales Tax Genie, I played around with creating a single
.EXE file that could install as a TSR, install as a TSR through
CONFIG.SYS, or run stand-alone either in DOS OR Windoze.
--
Grumpy Ol' Fred cisin at
xenosoft.com