On 17/10/05, Néstor Soriano <konamiman(_en_)konamiman(_punto_)com> wrote:
Dado este código:
I'm going to assume a standard Z80 with 1 waitstate in M1, in DI state:
ld bc,xxxx ; 11 clocks * 1
GOTODIEZ:
dec bc ; 7 clocks * xxxx
ld a,b ; 5 clocks * xxxx
or c ; 5 clocks * xxxx
jr nz,GOTODIEZ ; 13 clocks *(xxxx-1) + 8 clocks * 1
ret ; 11 clocks *1
; total = 11+8+11-13+xxxx*(7+5+5+13) = 17+30*xxxx clocks
----------------------------------------------------------------
Ricardo Bittencourt http://www.mundobizarro.tk
ricbit(_en_)700km(_punto_)com(_punto_)br "Save the trees. Eat more
woodpeckers"
------ União contra o forward - crie suas proprias piadas ------