Re: A86: how do I clear the Graph mem?


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

Re: A86: how do I clear the Graph mem?



>I was porting over a Usgard prog, and I ran into OTH_CLEAR.  I read
>usgard.h and it says "OTH_CLEAR =3D$8CBF  ; zero BC-1 bytes from 
>HL" how do I do this?
>Any help would be appreciated.

I am not sure about this one, but I think the following routine
will effectively simulate OTH_CLEAR and OTH_FILL:

OTH_CLEAR:  ld      (hl),0
OTH_FILL:   ld      e,l
            ld      d,h
            inc     de
            ldir
            ret


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com