[comp.sys.ibm.pc] How to change the default radix in CodeView

cgf@ednor.UUCP (04/13/87)

[]
One of the people here has discovered how to find the location in CodeView
that controls the radix that is set using the 'N' command.  We prefer to
always start up in hexadecimal, so we have changed the default radix from
10 to 16.

All you have to do is find the string "AX", then search for the first
byte containing a 0a.  Change that byte to 10 (hexadecimal) and the default
should now be base 16.  Sorry we couldn't give a DEBUG patch, but the locations
to change are beyond the 64K boundary.  You'll have to use one of the disk
file patchers for this.

This technique works with either CV 1.0 or 1.1.

(Do I have to say that you should do this on a backup copy of CodeView just
in case?)

-- 
			-Chris Faylor-
{harvard,decvax}!wanginst!ednor!cgf
{{harvard,ll-xn}!adelie,{decvax,allegra,talcott}!encore}!munsell!ednor!cgf
"I feel more like I do now than I did when I first got here."

cramer@kontron.UUCP (Clayton Cramer) (04/21/87)

> []
> One of the people here has discovered how to find the location in CodeView
> that controls the radix that is set using the 'N' command.  We prefer to
> always start up in hexadecimal, so we have changed the default radix from
> 10 to 16.
> 
> All you have to do is find the string "AX", then search for the first
> byte containing a 0a.  Change that byte to 10 (hexadecimal) and the default
> should now be base 16.  Sorry we couldn't give a DEBUG patch, but the locations
> to change are beyond the 64K boundary.  You'll have to use one of the disk
> file patchers for this.
> 
> This technique works with either CV 1.0 or 1.1.
> 
> (Do I have to say that you should do this on a backup copy of CodeView just
> in case?)
> 
> -- 
> 			-Chris Faylor-

Here's an even easier way, works with all versions of CodeView, and doesn't
yield unpredictable results when you later discover that that byte is used
somewhere else in CodeView.

Make a command file named CV.BAT, and put it somewhere on your hard disk
where it will be seen before CV.EXE (the CodeView executable).

\codeviewdirectoryname\CV -C"N16" %1 %2 %3 %4 %5 %6 %7 %8 %9

This tells CodeView to execute the N16 (set radix for input numbers to
base 16) command when starting CodeView.  %1 through %9 are input parameters
so you can specify parameters just like you are starting CodeView directly.

Clayton E. Cramer