O si aún así quieres usar C como contador, usa JR en vez de JP:
buc: call scroll
dec c
jr nz,buc
If there is the need for speed, B/djnz is an obvious decision.
But it he wants to use the C register, JP would be fastest (10
machine cycles plus 1 M1 wait state on MSX). JR would be slower
(12 machine cycles plus 1 M1 wait state on MSX). BUT JR will
be one byte shorter. (^=
Ah, trade-offs, trade-offs... hehehe
[]'s
Daniel Caetano
daniel(_en_)caetano(_punto_)eng(_punto_)br - http://www.caetano.eng.br/