[A83] Re: Inverting graph buffer in one time
[Prev][Next][Index][Thread]
[A83] Re: Inverting graph buffer in one time
> From: Peter-Martijn Kuipers <hyper@hysoft-automation.com>
>
> > Actual routine from Penguins (courtesy Bill Nagel):
> >
> > invert:
> > ld bc,768
> > ld hl,plotsscreen
> > inv_loop:
> > ld a,(hl)
> > cpl
> > ld (hl),a
> > inc hl
> > dec bc
> > ld a,b
> > or c
> Good trick to compare bc with zero...
It is used extensively in the TIOS... It's about the only thing in the TIOS that one can call 'optimized code' (at least in my calc).
-----------------------------------------------------
Mail.be, Free WebMail and Virtual Office
http://www.mail.be