In the book '6502 Assembly Language Programming' by Lance Leventhal, it is stated that SED ; 2 cycles CLC ; 2 cycles LDA $40 ; 3 cycles ADC #$90 ; 2 cycles ADC #$40 ; 2 cycles STA $41 ; 3 cycles CLD ; 2 cycles ; 16 cycles total is 'quicker' than LDA $40 ; 3 cycles CMP #10 ; 2 cycles BCC ASCZ ; 2/3/4 cycles ; 2=no branch / 3=branch / 4=cross-page branch ADC #'A'-'9'-'2' ; 2 cycles ASCZ ADC #'0' ; 2 cycles STA $41 ; 3 cycles ; 13/14 cycles total Have I miscounted my cycles? Is there ANY circumstance under which the first routine is 'quicker' than the second??? :-/ ===== 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!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.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.