[cc65] Optimization suggestion?

From: Christian Krüger <Christian.Krueger1pace.de>
Date: 2008-07-24 14:07:05
Couldn't be the sequence:

    ldx     #$00
    lda     _i
    pha
    clc
    adc     #$01
    sta     _i
    pla
    jmp     L0121

- which is generated quite often due to upcounting loops -
replaced by:

    inc	_i
    jmp     L0121

?

(same for down-counting -1 loops...)

Regards
chrisker


----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Jul 24 14:07:13 2008

This archive was generated by hypermail 2.1.8 : 2008-07-24 14:07:15 CEST