pettil icon indicating copy to clipboard operation
pettil copied to clipboard

Slightly faster tuck ?

Open barrym95838 opened this issue 5 years ago • 2 comments

Could we save about five cycles with no size penalty by eliminating the JSR?

tuck
    dex
    lda #>(next-1)
    pha
    lda #<(next-1)
    pha
    ; fall through

barrym95838 avatar Nov 26 '20 00:11 barrym95838

... I meant "by eliminating the jsr", but my browser at home is so old I can't use it to edit my posts here :-/

[Edit: corrected top post]

barrym95838 avatar Nov 26 '20 05:11 barrym95838

Oops ... might need to start that off with a dex ... I'll try to edit the original post when I get back to my work computer.

[Edit: corrected top post]

barrym95838 avatar Dec 25 '20 03:12 barrym95838