Search results
Enemy sprite rendering routine call
Score: 160.66 %,
Type: Forum topic , Comments: 5 comments
be to try My advice would be to try both and see which one works better.
Set a flag variable: 0 to Set a flag variable: 0 to render 1 to update sprites
Set a frame variable
Sprites update in the ISR:
If flag=1 do other ISR hooked tasks then ret
If flag=0 execute the whole ISR hooked tasks, set ...
Fast 16-bit signed comparison
Score: 160.09 %,
Type: Forum topic , Comments: 23 comments
and 'hl' and I want to be able to output according to that matrix :
hl<=0 hl>0
de<=0 0 hl
de>0 de max(hl,de)
I've coded this, but it's messy ('hl' contains the output):
ld a,h ; 5
cp d ; 5
jp z,.same ; 11 | same sign
jp c,.hl_max ; 11 | de < 0 and hl >= 0 ...
