I have a question about "nes-test-roms\full_palette\full_palette.s".
The author says 4739 cycles delayed. What I calculated is as following:
; Delay 4739 cycles, well into frame
ldx #4
ldy #176
: dey
bne :-
dex
bne :-
result = 2 + 2 +
(176 x 5 - 1) + 3 x (255 x 5 - 1) +
(4 x 5 - 1)
= 4724
Why my answer is wrong?
Code:
; Delay 4739 cycles, well into frame
ldx #4
ldy #176
: dey
bne :-
dex
bne :-
ldx #4
ldy #176
: dey
bne :-
dex
bne :-
The author says 4739 cycles delayed. What I calculated is as following:
; Delay 4739 cycles, well into frame
ldx #4
ldy #176
: dey
bne :-
dex
bne :-
result = 2 + 2 +
(176 x 5 - 1) + 3 x (255 x 5 - 1) +
(4 x 5 - 1)
= 4724
Why my answer is wrong?