From: Daniel Kahlin (tlr_at_stacken.kth.se)
Date: 2003-04-28 21:30:28
On Mon, 28 Apr 2003, Marko Mäkelä wrote:
> I'm working on the next version of cbmlink. I'd like to provide the cbmlink
> server programs with a BASIC header that transfers the machine code in place.
> To make things more flexible, I'd document a POKE that allows the user to
> specify an alternative loading address for the machine code, with 256 bytes
> of granularity. For example, instead of loading the code to $cc00 on the
> C64, the user could POKE X,192 and load it to 49152.
>
> Now, the problem is: how can I produce a list of all locations that need
> to be patched? If I remember correctly, the CS-DOS code (a C128 shell
> extension made by Chris Smeets) does this by assembling the code at two
> different offsets and comparing the resulting binaries. Is there a more
> "intelligent" way? I'd like to use André Fachat's xa, but porting the
> code to the assembler of the cc65 compiler suite is not out of the question.
I use the same trick for over5. Assembling is so fast nowadays that it is
no problem assembling the same file twice. There is a small utility
(tlrreloc) included in the over5-archive (compilable on unix-like
systems). Look under over5/tlrutils/ for it, and under
over5/cbm/fastrs/Makefile.in for example usage.
Archive here: http://www.kahlin.net/daniel/over5/pub/over5-20021117.tar.gz
Regards
/Daniel
Message was sent through the cbm-hackers mailing list
Archive generated by hypermail pre-2.1.8.