Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: Notesfiles $Revision: 1.6.2.17 $; site uokvax.UUCP
Path: utzoo!watmath!clyde!cbosgd!ihnp4!inuxc!pur-ee!uiucdcs!uokvax!emjej
From: emjej@uokvax.UUCP
Newsgroups: net.micro.6809
Subject: Re: TSedit and OS-9
Message-ID: <3500072@uokvax.UUCP>
Date: Tue, 5-Feb-85 11:06:00 EST
Article-I.D.: uokvax.3500072
Posted: Tue Feb  5 11:06:00 1985
Date-Received: Fri, 8-Feb-85 02:07:15 EST
References: <1320@t4test.UUCP>
Lines: 27
Nf-ID: #R:t4test:-132000:uokvax:3500072:000:1360
Nf-From: uokvax!emjej    Feb  5 10:06:00 1985

One thing you could do is to change the name of the module; you could do
this with the debugger. If the name is "tsedit" (or anything else longer
than "edit") it's easy; otherwise you'll have to either extend the module
at the end or move things about.

Eh? you say. OK: look in the docs for the layout of modules. One of the
standard things in the module header is "offset to name of module." You
need to look into the module at that offset, and there you'll find the
name tsedit currently goes by. Let's suppose it's "tsedit" (I hope that's
a safe assumption). You'll note that the trailing "t" has its sign bit set;
that's how end of string is recognized in quite a few places in OS-9.
OK. Now, come to think of it, there are two ways you can proceed:

1. Increment the offset by two (skipping over the "ts" in "tsedit"!).
2. Leave the offset alone and change the name string.

Take your pick; either should do. Once you have that done and saved, you
will have to update the module checksum, since OS-9 won't let you load it
otherwise. You can do this with the "verify" program, I believe. Then,
move the file containing your newly-CRCed module into your current
execution directory under the name of "edit" and you're ready to go.

(Do work on a copy of tsedit, in case I've made a mistake somewhere.)

				Welcoming corrections if needed,
				James Jones