[net.micro.6809] TSedit and OS-9

joe@t4test.UUCP (Joe Roberts) (01/31/85)

	Since I posted my last article I have been wondering
    about T/Sedit and how to integrate it into the OS-9
    system disk. 
	
	Does anyone out in net-land know if T/Sedit can 
    be put on the OS-9 system disk so that when 'edit'
    is called, T/Sedit would run instead of the line 
    editor that comes with OS-9 ?

	Maybe it could be renamed to 'vi'. I would appriciate
    it any comments on this subject. Thanks in advance.

					Joe Roberts
					(Intel Corp.)

					(t4test@joe)

cs193aat@unm-la.UUCP (02/05/85)

> 
> 	Since I posted my last article I have been wondering
>     about T/Sedit and how to integrate it into the OS-9
>     system disk. 
> 	
	You should be able to copy it to the /CMDS directory on
	your working diskette along with the defaults startup file.
	I think that by removing edit from the disk and renaming
	TSEdit as edit, you should have no problems.  I have tried
	to use TSEdit with FHL OPAK with little success, it seems
	that they conflict with each other.

> 	Does anyone out in net-land know if T/Sedit can 
>     be put on the OS-9 system disk so that when 'edit'
>     is called, T/Sedit would run instead of the line 
>     editor that comes with OS-9 ?
> 
	See above.

> 	Maybe it could be renamed to 'vi'. I would appriciate
>     it any comments on this subject. Thanks in advance.
> 
	TSEdit can be named vi if you wish.

> 					Joe Roberts

> 					(Intel Corp.)
> 
> 					(t4test@joe)

*** REPLACE THIS LINE WITH YOUR MESSAGE ***
-- 
{{ Mike Mitchell @ UNM Los Alamos }}

emjej@uokvax.UUCP (02/05/85)

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