Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!apple!hercules!fernwood!portal!cup.portal.com!Ordania-DM From: Ordania-DM@cup.portal.com (Charles K Hughes) Newsgroups: comp.sys.atari.8bit Subject: Re: DIRT - a new DIR command Message-ID: <36045@cup.portal.com> Date: 18 Nov 90 07:44:56 GMT References: <35990@cup.portal.com> Organization: The Portal System (TM) Lines: 27 Okay all you masterminds out there...I need a FAST, SMALL routine that converts a 3 byte binary number, into its 8byte ASCII equivalent. I have a routine in DIRT.M65 that does this, but it is pretty slow (and pretty fast too compared to some of the ones I've seen). Feel free to take a look at it. Anyway, the routine has to convert a 3 byte binary number to its 8 byte ATASCII equivalent. That is it. No other requirements. You don't have to remove leading zeroes, you don't have to right or left justify the number. Just give me a routine that goes from 3 bytes binary to 8 bytes ATASCII. Think you can do it? I checked about 8 different books, including a few non-6502 ones and they *ALL* did it in the exact same way unless the CPU had a built in divide instruction. So, everyone, show me what a quack programmer I am and write me a faster routine. I'll even give you a whole 256 bytes to write it in (generous, aren't I? :). No cheating now...supercomputers are not allowed to compete. What will you win for your super-duper amazing binary->ascii converter? Hey, honorable mention in the documentation of DIRT. Thanks in advance Charles Hughes send mail to: Charles_K_Hughes@cup.portal.com