Re: A85: Drawing a menu
[Prev][Next][Index][Thread]
Re: A85: Drawing a menu
When the cursor is drawn, it inverses seven rows, each 10 bytes across,
with three bytes on either side. The 112 is the difference of hl at the
end and hl at the beginning. hl + 7 (16). I don't really understand
what the code below is supposed to do.
Justin Bosch
justin-b@juno.com
>; a = the row to inverse
>
>Draw_Cursor:
> ld hl, $FE13 - 112 ; Options menu cursor - 112
> ; (the 112 gets added back)
> ld de, 112 ; # of bytes for each row
> ld b,a ; put row number in b for djnz
>D_C_CalcVidMem: ; must go through loop at least once
> add hl, de ; for each row, add 112 bytes
> djnz D_C_CalcVidMem
>
>;hl now has correct address of where to start drawing
>
> ld c, 7 ; Height of cursor
>Draw_Cursor_2:
> ld b, 10 ; Width in bytes of cursor
>Draw_Cursor_3:
>
>
>but i'll look some more and see i can find the actual problem.
>
>-mike pearce
>
_____________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
Or call Juno at (800) 654-JUNO [654-5866]
Follow-Ups:
References: