I know I didn't disqualify table use in my challenge so I suppose thats the fastest possible way, eh Steve? ;-) Indeed the cycle count is as low as possible! Howevever, your 2-table3 algo uses just over 2 pages of memory! :-O If I were going to use tables, I might be more inclined to do something like: LDA BYTE LSR LSR LSR LSR TAX LDA TABLE,X STA $FB LDA BYTE AND #$0F TAX LDA TABLE,X STA $FC RTS TABEL TXT '0123456789ABCDEF' I THINK that should do it, (Spiro?) Does anyone know a NON-TABLE algo to do the same thing with lowest possible cycle count? --- Steve Judd <sjudd@swcp.com> wrote: > On Fri, 16 Mar 2001, Professor Dredd wrote: > > > For some time I've wondered if there were a faster > way > > to convert binary to ASCII coded hex. I even > played > > with some BCD numbers before I understood the > Decimal > > mode. If you can code an algorithm with the lowest > > possible cycle count to process in 1-byte chunks, > > please do :-) > > LDX num > LDA highnyb,X > LDY lownyb,X > > -S > > - > This message was sent through the cbm-hackers > mailing list. > To unsubscribe: echo unsubscribe | mail cbm-hackers-request@dot.tml.hut.fi. ===== Get a FREE 6Mb webmail box from go6502! - http://www.geocities.com/profdredd As low as 2.99% Intro APR from NextCard! - http://www.nextcard.com/index6.html?ref=aff0074521 PayPal is the FAST FREE and SECURE way to send money! - https://secure.paypal.x.com/refer/pal=profdredd%40yahoo.com __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - This message was sent through the cbm-hackers mailing list. To unsubscribe: echo unsubscribe | mail cbm-hackers-request@dot.tml.hut.fi.
Archive generated by hypermail 2.1.1.