Z80 Routines:Graphic:put8x8sprite

From WikiTI
Revision as of 07:46, 27 October 2009 by Galandros (Talk | contribs)

Jump to: navigation, search

The put8x8sprite routine is used to plot a 8x8 sized sprite.

This article is a stub. You can help WikiTI by expanding it.


Code

Version without clipping


 

Version with Clipping


 

Example

   ;...
   ld   e,8   ;y
   ld   a,16  ;x
   ld   b,8   ;height
   ld   ix,sprite
   call putsprite
   call fastcopy
   ;...
sprite:
   .db %11111111
   .db %10000001
   .db %10000001
   .db %10000001
   .db %10000001
   .db %10000001
   .db %10000001
   .db %11111111