pettil icon indicating copy to clipboard operation
pettil copied to clipboard

Improved toggle ?

Open barrym95838 opened this issue 4 years ago • 0 comments

Charlie, are we allowed to trick stackh into holding the full address temporarily to save six bytes?

toggle
    lda stackl,x
    sta stackh-1,x
    lda (stackh-1,x)
    eor tos
    sta (stackh-1,x)
    jmp twodrop

It seems to me that as long as you don't execute FORTH inside your interrupt handlers, you could get away with it.

barrym95838 avatar Jul 01 '21 20:07 barrym95838