Mail Archives: djgpp/1996/07/06/10:49:44
Xref: | news2.mv.net comp.os.msdos.djgpp:5696
|
From: | brucef AT central DOT co DOT nz (Bruce Foley)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: Setpixel in AT&T inline asm....
|
Date: | Sat, 06 Jul 1996 05:45:21 GMT
|
Organization: | Internet Company of New Zealand
|
Lines: | 34
|
Message-ID: | <4rl220$bai@status.gen.nz>
|
References: | <4rh0g5$m9r AT twain DOT mo DOT net>
|
NNTP-Posting-Host: | brucef.central.co.nz
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
vecna AT Walden DOT mo DOT net ([vecna]) wrote:
>a char is a byte, an int is 16 bits? (or is it 32?) geez, what I wouldn't
>give for db, dw, and dd right now.... oh well, thanks in advance.. :)
>=============================================================================
>[vecna] crs: code/music/design/www boingo/crs/eos/#lunar
>vecna AT mo DOT net www page: http://mo.net/~vecna nineinchnails/quake
>moo AT tss DOT survivor DOT org home of the nin music archive Eomar on #lunarRPG
>=============================================================================
I do this, just to maintain total clarity, -maybe it will suite your
tastes to?
typedef unsigned char UBYTE; // 8
typedef unsigned short UWORD; // 16
typedef unsigned long UDWORD; // 32
typedef signed char SBYTE; // 8
typedef signed short SWORD; // 16
typedef sighed long SDWORD; // 32
Put this in a header file and have it as your first include. This
also means you could just change the header file if you
ported the code to another architecture...
Also, I have a preference for making my assembler routines
external because I think it makes reading the C code
clearer and the assembler code simpler -just my opinion
Bruce.
- Raw text -