先日のやつはループカウンタの挙動でセーブデータをもう1つ使用せねばならないということで、ボツ。普通に考えれば3byte書くだけなので手の込んだ index addressing とかいらん。
org $6142 ldy xxxx ;contains data 1, vaild address bne $6102 org $6102 sty $7f6c bne $6182 org $6182 ldy #$8c bne $61c2 org $61c2 sty $7f72 jmp $6442 org $6442 ldy #$86 bne $6402 org $6402 sty $7f73 jmp yyyy ;normal operation
RAM 消費量が明らかにすくないし、内容がとても簡潔。