Re: A83: Re: Large sprite


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

Re: A83: Re: Large sprite




ld a,(left_y)
push af
 ld e,a
 ld a,5
 ld bc,SpritePaddleTop    ; i thought the convention was loading it into hl
 call SPRXOR
pop af
add a,8
ld e,a
ld a,5
call SPRXOR
call _grbufcpy_V           ; only paint the screen after you have loaded
                           ; EVERYTHING on the background

----- Original Message ----- 
From: Marc Puts <marcputs@hetnet.nl>
To: <assembly-83@lists.ticalc.org>
Sent: Monday, February 28, 2000 3:44 PM
Subject: RE: A83: Re: Large sprite


> 
> Well, other question, how can i add 8 to a?
> 
> ld a,(left_y) ; left_y contains the vertical position of the top of my
> sprite
> ld e,a
> ld a,5 ; the horizontal position is always 5
> ld bc,SpritePaddleTop   ; the top of my sprite
> call SPRXOR ; call movax' sprite routine
> ;call _grbufcpy_v (must I include this line here?)
> 
> ld d,8 ; } Why doesn't this work???
> add a,d ; }
> 
> call SPRXOR
> call _grbufcpy_v
> 
> 



References: