please dont rip this site
/*
 * output one group of 3 bytes, pointed at by p, on file f.
 */
outdec(p, f)
char *p;
FILE *f;
{
	int c1, c2, c3, c4;

	c1 = *p >> 2;
	c2 = (*p << 4) & 060 | (p[1] >> 4) & 017;
	c3 = (p[1] << 2) & 074 | (p[2] >> 6) & 03;
	c4 = p[2] & 077;
	putc(ENC(c1), f);
	putc(ENC(c2), f);
	putc(ENC(c3), f);
	putc(ENC(c4), f);
}

/* ENC is the basic 1 character encoding function to make a char printing */
#define ENC(c) (((c) & 077) + ' ')

/*
with luck with will compile to:
	
	mov al, [esi]
	shr al, 2
	add al, ' '
	stosb
	mov al, [esi]
	shl al, 4
	and al, 60o
	mov ah, [esi+1]
	shr ah, 4
	and ah, 017o
	or al,ah
	add al, ' '
	stosb
	mov al, [esi+1]
	shl al, 2
	and al, 074o
	mov ah, [esi+2]
	shr ah, 6
	and ah, 03o
	or al,ah
	add al, ' '
	stosb
	mov al,[esi+2]
	and al, 077o
	add al, ' '
	stosb		

which is beaten all to hell by:

	lodsw
	dec esi
	mov edx,eax
	mov ecx,4
	.Repeat
		and al, 00111111y
		add al, ' '
		stosb
		shr edx, 6
		mov al,dl
		.Untilcxz


file: /Techref/method/codec/uuencode.htm, 1KB, , updated: 1999/12/21 16:29, local time: 2024/11/26 08:41,
TOP NEW HELP FIND: 
18.116.52.43:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://sxlist.com/Techref/method/codec/uuencode.htm"> method codec uuencode</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to sxlist.com!


Site supported by
sales, advertizing,
& kind contributors
just like you!

Please don't rip/copy
(here's why

Copies of the site on CD
are available at minimal cost.
 

Welcome to sxlist.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .