TIP: Click on subject to list as thread! ANSI
echo: cis.telecommunications
to: Pete Lyall 76703,4230 (X)
from: Greg Law 72130,23
date: 1991-01-12 20:42:39
subject: #9017-#uucp

#: 9104 S7/Telecommunications
    12-Jan-91  20:42:39
Sb: #9017-#uucp
Fm: Greg Law 72130,23
To: Pete Lyall 76703,4230 (X)

Pete,

        The byte ordering used on Intel processors is the same as the VAX, I
believe. It's a simple case of little-endian versus big-endian. Thus, the value
$ABCD would be seen in memory as CDAB. I assume that in your examples, you used
4-byte numbers. (Otherwise you'd be implying that the VAX swapped the order of
the two nibbles within a byte.) On Intel processors, the most common data types
and their values are stored as follows:

        int     CDAB            ($ABCD)
        long    CDAB2301        ($0123ABDC)
        far ptr CDAB:2301       ($0123:ABCD)

Of course the colon isn't stored in memory, but it helps to clarify a far
pointer consisting of a segment:offset. The values in parantheses are the
actual values you'd feed to the assembler. Oops, that should be ($0123ABCD) for
the long - I accidentally swapped C and D.

        -- Greg

There is 1 Reply.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.