Ref: 17350010
Title: XENIX ADB Bug -- Writing Hex Values to a File
Date: 5/10/91

Copyright 3Com Corporation, 1991.  All rights reserved.

When writing hexadecimal values to a file using the Absolute Debugger
(ADB) utility provided with SCO XENIX, incorrect values are written.  For
example, to write the hex value 2E4A to memory locations 0x4 and 0x5,
the syntax is

   <segment #>:4?w0x2E4A

(0x implies that a hex number follows.)

The values are written in reverse order, in keeping with the method used
by the 80x86 processor family to write and read memory contents.  Upon
examination of locations 4 and 5 after writing the value, you will see
something like this:

   0x4: 2a 0e

when you were expecting:

   0x4: 4a 2e


This problem does not occur if you are writing strictly numeric values
to memory.  It occurs only if the value you are writing contains the hex
digits A, B, C, D, E, or F AND they are specified in uppercase.  If you
provide the value to be written in lower case, the value is written
correctly.

To solve the problem, use lowercase letters to specify values to be written
to a file.  If the value is to be input from another file, pre-process the
file using a translation utility such as "tr" or "sed".

