[A83] Re: My scrolling routine... it should work (but it's bugging)


[Prev][Next][Index][Thread]

[A83] Re: My scrolling routine... it should work (but it's bugging)




>   dec  c
>   ld   a,c
>   jr   nz,Scroll_Left_res

Second glance... what the heck is this?

You don't need to "ld a,c", because LD does NOT alter the 
flags! You can simply leave it out, it's redundant. Note 
that the flags and the accumulator are independent, despite 
the frequent pairing of AF!

PG




References: