Re: PutSprite Help


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

Re: PutSprite Help



At 02:10 PM 11/7/97 -0500, Jim Ruble wrote:
>#include "usgard.h"
>
>.org 0
>.db "Graphics Test",0
>
> ld a,4
> out (5),a
>
> call CLEARLCD
> ld b,$01
> ld c,$01
> ld hl,Block

Here's your problem; this should be
        ld      hl, &Block
You can't forget about relocation.  If you ever need to access something
thats inside your program (not a fixed location), you have to add in the
'&' mark.  The rest of your code seemed okay, though.


References: