chitselb / pettil

6502 Forth-83 dialect for the Commodore PET 2001
http://pettil.tumblr.com
34 stars 3 forks source link

Slightly faster tuck ? #81

Open barrym95838 opened 3 years ago

barrym95838 commented 3 years ago

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 commented 3 years ago

... 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 commented 3 years ago

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]