i don't understand why the idiomatic way to software debounce on the game boy is to read the address like 6 times in a row and store it in the same register

like surely

ld  a,[$ff00]
ld a,[$ff00]
ld a,[$ff00]
ld a,[$ff00]
ld a,[$ff00]
ld a,[$ff00] ; wait a few cycles

and

nop
nop
nop
nop
nop
ld a,[$ff00] ; wait a few cycles

are the same?

i do not get it

Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.