Re: A85: Grayscale


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

Re: A85: Grayscale




>  >> How can I clear the screen with grayscale activated?
>  >
>  >call CLEARLCD       ; clear the first page.
>  >
>  >clear_page2:            ; clear the second page
>  > ld hl,(PAGE2ADDR)
>  > ld bc,1024
>  > call OTH_CLEAR
>  > ret
>  >
>  >You might want to do this to save bytes if you clear it a lot:
>  >
>  >CLEARLCD_GRAY:                         ;Usage: call &CLEARLCD_GRAY
>  > ld hl,(PAGE2ADDR)
>  > ld bc,1024
>  > call OTH_CLEAR
>  >      jp          &CLEARLCD
>  >
>  
>  
>  i don't think this should be a & for the jump in the last line since
>  CLEARLCD is an absolute addr.

Woops. My bad :)

CLEARLCD_GRAY:                         ;Usage: call &CLEARLCD_GRAY
      ld hl,(PAGE2ADDR)
      ld bc,1024
      call OTH_CLEAR
      jp CLEARLCD

-------
NAME : Mikel Blanchard, of Macross Software
WEB   : http://members.xoom.com/CashOnly/Macross.html
EMAIL : cashonly@aol.com
ICQ     : 3033904 (CashOnly)