Re: A82: Writing Text to APD_BUF


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

Re: A82: Writing Text to APD_BUF




>   How would you write text to APD_BUF? I figured out why set/res 
>7(iy+$14) doesn't work. It is because Andreas uses what he calls a 
>double graph buffer to speed up the game. He writes the screen data to 
>APD_BUF then copies it to GRAPH_MEM at a later point in the source. 
>Since set/res 7 doesn't work, he used this routine in the 85/86 version 
>to keep the score on the screen:
> ld     HL,0
> ld     (CURSOR_X), hl
> ld     HL, (SCORE)
> call   DM_HL_DECI      ;display HL menu style
> push bc
> ld   b, 6
> ld   de, APD_BUF
> ld   hl, GRAPH_MEM
>CopyVid2Grf:
> push bc
> ldi
> ldi
> ldi
> ld   bc, 13
> add  hl, bc
> ex   de, hl
> add  hl, bc
> ex   de, hl
> pop  bc
> djnz CopyVid2Grf
> pop  bc
>
>   Why won't this work on the 82? Is there a better way to do it?
>

   Nevermind. I figured it out for myself.


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