Re: A85: Another newbie question, about sprites


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

Re: A85: Another newbie question, about sprites




is this the entire program??  if so, you need to add a "ret" statement
or else it will try to execute the bytes at A_shape as code.  also,
why do you switch the page to 0 "out (5),a"?  i don't know why that
would be necessary.  also, you would want to add something to allow
you to see the sprite (see below).

-mike pearce

>
> ld b,32
> ld c,32
> ld hl,&A_shape
> ld a,4	;switch to ROM page 4 for FIND_PIXEL
> out (5),a	; inside the PSPR_NR routine
> #fncall PSPR_NR
-----------------------------------------
 call OTH_PAUSE	;wait for ENTER to be pressed
-----------------------------------------
> ld a,0	;why are these lines of code
> out (5),a	; here????
-----------------------------------------
 ret		;return from function (or possibly exit program)
-----------------------------------------
>A_shape:
> .db 8,8
> .db %00000000
> .db %11111110
> .db %10000010
> .db %10000010
> .db %10000010
> .db %10000010
> .db %10000010
> .db %11111110
>


References: