Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.apple2.programmer > #5898

Re: Merlin32 and Negative DS Pseudo Op

From Oliver Schmidt <ol.sc@web.de>
Newsgroups comp.sys.apple2.programmer
Subject Re: Merlin32 and Negative DS Pseudo Op
Date 2021-10-24 08:23 +0000
Message-ID <sl356d$6a3$1@solani.org> (permalink)
References <naCdnfXJrIycq_78nZ2dnUU7-LnNnZ2d@earthlink.com> <2dd21bcd-ccc3-4872-8757-ce12f2e12237n@googlegroups.com> <e4fe03ff-6504-4557-8408-c7275de5e1a4n@googlegroups.com> <75ednWXb7d50yun8nZ2dnUU7-cPNnZ2d@earthlink.com>

Show all headers | View raw


Hi Hugh,

>> I believe what he's trying to do is patch the binary included with
>> PUTBIN with the assembler itself.

> Exactly! Thanks for boiling that down to one succinct sentence for me.

The ld65 linker supports 'overwrite' segments for that very purpose.
https://cc65.github.io/doc/ld65.html#ss5.4 says:

Perhaps you are modifying an OS ROM that has its public subroutines at
fixed, well-known addresses, and you want to prevent them from shifting to
other locations in memory if your changed code takes less space. Or you are
updating a block of code available in binary-only form with fixes that are
scattered in various places. Generally, whenever you want to minimize
disturbance to an existing code brought on by your updates, OVERWRITE
segments are worth considering.

Regards,
Oliver



Back to comp.sys.apple2.programmer | Previous | NextPrevious in thread | Find similar


Thread

Merlin32 and Negative DS Pseudo Op Hugh Hood <hughhood@earthlink.net> - 2021-10-10 13:50 -0500
  Re: Merlin32 and Negative DS Pseudo Op Antoine Vignau <ntn.vignau@gmail.com> - 2021-10-22 11:37 -0700
    Re: Merlin32 and Negative DS Pseudo Op fadden <fadden@fadden.com> - 2021-10-23 08:03 -0700
      Re: Merlin32 and Negative DS Pseudo Op kegs@provalid.com (Kent Dickey) - 2021-10-23 11:17 -0500
        Re: Merlin32 and Negative DS Pseudo Op fadden <fadden@fadden.com> - 2021-10-23 10:17 -0700
      Re: Merlin32 and Negative DS Pseudo Op Hugh Hood <hughhood@earthlink.net> - 2021-10-23 13:43 -0500
        Re: Merlin32 and Negative DS Pseudo Op Oliver Schmidt <ol.sc@web.de> - 2021-10-24 08:23 +0000

csiph-web