Z80 Routines:Graphic:put8x8sprite: Difference between revisions
From WikiTI
Jump to navigationJump to search
New page: LargeSpriteLargeSprite The '''put8x8sprite''' routine is used to == Code == === Version without clipping === === Version w... |
mNo edit summary |
||
| Line 1: | Line 1: | ||
[[Category:Z80 Routines:Graphic|LargeSprite]][[Category:Z80 Routines|LargeSprite]] | [[Category:Z80 Routines:Graphic|LargeSprite]][[Category:Z80 Routines|LargeSprite]] | ||
The '''put8x8sprite''' routine is used to | The '''put8x8sprite''' routine is used to plot a 8x8 sized sprite. | ||
{{stub}} | |||
== Code == | == Code == | ||
=== Version without clipping === | === Version without clipping === | ||
<nowiki> | |||
</nowiki> | |||
=== Version with Clipping === | |||
<nowiki> | |||
</nowiki> | |||
== Example == | == Example == | ||
<nowiki> | <nowiki> | ||
;... | ;... | ||
ld | ld e,8 ;y | ||
ld a,16 ;x | ld a,16 ;x | ||
ld b,8 ;height | ld b,8 ;height | ||
Revision as of 14:46, 27 October 2009
The put8x8sprite routine is used to plot a 8x8 sized sprite.
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