Re: A86: GrayScale PutSprite


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

Re: A86: GrayScale PutSprite






eightynine@juno.com wrote:

> looks good but how do i use it?  like this?
>
>  ld hl, sprite            ; ix should be the location?
>  ld i, h                      ;
>  ld x, l                       ;
>  ld a, 8                     ;
>  ld b, a                     ; load 8 into b for x coord
>  ld c, a                     ; load 8 into c for y coord
>  call PutSprite        ; display it
>
> how do you store the grayscale pics? what include files do you need?

Load ix w/ the sprite offset and bc with the coordinates.  The sprite
should actually be two 8x8 sprites: the first 8 bytes will be put to
video mem and the second 8 bytes will be put to _plotSScreen.  bc is
preserved and ix will be incremented by 16 (now points to the first byte
after the sprite).


References: