www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/06/17:42:57

From: Andrew Crabtree <andrewc AT typhoon DOT rose DOT hp DOT com>
Message-Id: <199706062142.AA029693361@typhoon.rose.hp.com>
Subject: Re: 32 bit Memory Operations
To: marl AT rmplc DOT co DOT uk (Liam)
Date: Fri, 06 Jun 1997 14:42:40 PDT
Cc: djgpp AT delorie DOT com
In-Reply-To: <199706062045.UAA14496@mx2.rmplc.co.uk>; from "Liam" at Jun 6, 97 12:28 (noon)

> > words rather than bytes, as they copy 4 bytes at a time.
> > 1 WORD =  4 BYTES, so when you tell it how many words to copy, make sure
> > it's the (# OF BYTES/4)
> Thats wrong, ONE WORD is equilivant to TWO BYTES NOT FOUR.
> Those routines are moveing double words or in AT&T, long words, which are
> FOUR BYTES.

Well, if you take off the intel x86 blinders, word has historically
meant the normal interger size of the CPU, which would be
4 bytes for 386s and newer.   Every other 32 bit
architecture I've used defines words to be 32 bits long, so anyone
with a non-x86 background would probably use word in that 
manner.  Nothing wrong with it, it just looks weird to PC 
only people.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019