www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/11/26/19:14:38

Date: Sat, 26 Nov 1994 16:55:58 -0500 (CDT)
From: Aaron Ucko <UCKO AT VAX1 DOT ROCKHURST DOT EDU>
Subject: Re: Memory Allignment
To: wudavid AT ecf DOT toronto DOT edu
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Organization: Rockhurst College; Kansas City, MO

>Is memory allignment an important concept?
>
>If I want to blit a bitmap to a RAM screen buffer, I would imagine that
>doing it 32 bits at a time is a good idea. (I'm using 8 bits per pixel)
>Would this be bad if the long words were not properly alligned?
yes
>Is it better to just move bytes?
perhaps
>Is there a way to fix this?
yes.  move bytes until you hit a dword boundary, then move longs as long
as possible, then move bytes until you're done.
>Disclaimer:  This message may not be politically correct.
>The message may not be grammatically correct.
The message may not be orthographically correct.
[`aligned' has only 1 `l']

--- Aaron Ucko (ucko AT vax1 DOT rockhurst DOT edu; finger for PGP public key) -=- httyp!
-=*=-Just because you're paranoid doesn't mean they aren't out to get you.-=*=-
Geek code 2.1 [finger hayden AT vax1 DOT mankato DOT msus DOT edu for explanation]: 
 GCS/M/S d(-) H s g+ p? !au a-- w+ v+ C++(+++)>++++ U-(S+)>++++ P+ L>++ 3(-) 
 E-(----) !N>++ K- W(--) M-(--) V(--) po-(--) Y+(++) t(+) !5 j R G tv--(-) 
 b+++ !D(--) B--(---) e>++++(*) u++(@) h!() f(+) r-(--)>+++ n+(-) y?

- Raw text -


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