Re: A86: Re: moving a sprite


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

Re: A86: Re: moving a sprite







>
>In a message dated 9/16/98 5:48:28 PM Pacific Daylight Time,
tbarwick@esn.net
>writes:
>
><<
> Shouldn't it be:
>     cp K_RIGHT
>     jp z,move_sprite_right
>
> The zero flag is set if the key if pressed, not reset. >>
>
>yea, I think you're right but I tried that also and it still doesn't work.
>all the emu does is think and think and think.
>
>Maybe its in the putsprite code.  does anybody see an error in that?:

Yeah, you only copied half of it.  This is just a findpixel routine that
jumps to (bc) at the end.

>
>ld h,63
>ld a,c
>add a,a
>add a,a
>ld l,a
>add hl,hl
>add hl,hl
>ld a,b
>rra
>rra
>rra
>or l
>ld l,a
>ld a,7
>and b
>ld d,a
>ld e,8
>push bc
>ret
>
>
>Once again, Thanks A LOT!,
>BlAsTo1414
>