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