On Thu, 18 May 1995 11:35:06 +0100, Geoff Winkless said:
> 
>       ld a,(hl)       ; see below
>       inc a           ; see below
>       ld (hl),a       ; see below...
>       jr nc, loop1
>       ld bc,24576

>                       ;bc has got to 0 -- hit the end of the screen...
> 
>                       ;now if (hl)=0, it's finished...

     ; Forget that.  You have finished if and only if you fall off the end
     ; of the screen.

>                                              and I _probably_ should have used
> inc (hl) but I can't for the _life_ of me remember if it changes the C flag
> and I don't have my databook to hand...

It doesn't.  And neither does inc a.  They both set the zero flag though,
so use that instead.

imc

Reply via email to