Z80 Routines:Graphic:put8x8sprite

From WikiTI
Revision as of 14:44, 27 October 2009 by Galandros (talk | contribs) (New page: LargeSpriteLargeSprite The '''put8x8sprite''' routine is used to == Code == === Version without clipping === === Version w...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

The put8x8sprite routine is used to

Code

Version without clipping

Version with Clipping

Example

   ;...
   ld   l,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