[Coco] Modifying OS9 module names

Allen Huffman alsplace at pobox.com
Tue Mar 15 13:25:04 EDT 2022


> On Mar 15, 2022, at 11:35 AM, William Carlin <whcarlinjr at gmail.com> wrote:
> 
> Is there a guilde online that demonstrates how to modify an OS9 module name
> with ded (on disk of course) or med (in memory) or by making an ipatch
> script?  I want to modify one of the many directory listing programs that
> has a useful feature.  On disk it's called lsh but of course the actual
> module name once in memory is ls.  I want to change (lengthen) the module
> name from ls to lsh as I normally have another 'ls' loaded manually in
> memory or it's still in use with the screen paused after a page full of
> text is displayed.

Patching then fixing the CRC is easy with dEd, but inserting bytes to make room may be trickier. I have not done that.

I have, however, renamed using ezgen from Burke & Burke. That would be normally used on a bootfile, since you can “link” to individual modules inside of it, and insert or delete or … rename.

I suspect you could “ezgen -dm module” on disk and then “l module” to go to it and then “r new” to change the name, then exit and it would update the CRC.

I would do stuff like…

ezgen -dm /h0/os9boot
l h0
r harddrive1

…etc…

Others here may have other utilities that are easier. There’s another that is included with NitrOS9 I think but I have never used it (works like ezgen so probably can rename as well).




More information about the Coco mailing list