<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wikiti.brandonw.net/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wikiti.brandonw.net/index.php?action=history&amp;feed=atom&amp;title=Z80_Routines%3AGraphic%3AputLargeSprite2</id>
		<title>Z80 Routines:Graphic:putLargeSprite2 - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wikiti.brandonw.net/index.php?action=history&amp;feed=atom&amp;title=Z80_Routines%3AGraphic%3AputLargeSprite2"/>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=Z80_Routines:Graphic:putLargeSprite2&amp;action=history"/>
		<updated>2026-05-13T20:22:33Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.5</generator>

	<entry>
		<id>https://wikiti.brandonw.net/index.php?title=Z80_Routines:Graphic:putLargeSprite2&amp;diff=9216&amp;oldid=prev</id>
		<title>Galandros: moved Z80 Routines:Graphic:putLargeSprite to Z80 Routines:Graphic:putLargeSprite2:&amp;#32;mistake</title>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=Z80_Routines:Graphic:putLargeSprite2&amp;diff=9216&amp;oldid=prev"/>
				<updated>2010-06-25T09:11:03Z</updated>
		
		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/index.php?title=Z80_Routines:Graphic:putLargeSprite&quot; title=&quot;Z80 Routines:Graphic:putLargeSprite&quot;&gt;Z80 Routines:Graphic:putLargeSprite&lt;/a&gt; to &lt;a href=&quot;/index.php?title=Z80_Routines:Graphic:putLargeSprite2&quot; title=&quot;Z80 Routines:Graphic:putLargeSprite2&quot;&gt;Z80 Routines:Graphic:putLargeSprite2&lt;/a&gt;: mistake&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 09:11, 25 June 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Galandros</name></author>	</entry>

	<entry>
		<id>https://wikiti.brandonw.net/index.php?title=Z80_Routines:Graphic:putLargeSprite2&amp;diff=9215&amp;oldid=prev</id>
		<title>Galandros: mistake</title>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=Z80_Routines:Graphic:putLargeSprite2&amp;diff=9215&amp;oldid=prev"/>
				<updated>2010-06-25T09:10:48Z</updated>
		
		<summary type="html">&lt;p&gt;mistake&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 09:10, 25 June 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;[[Category:Z80 Routines:Graphic|PutLargeSprite]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;[[Category:Z80 Routines|PutLargeSprite]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The '''put16xBsprite''' routine is used to plot a large sized sprite given its height and width.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The '''put16xBsprite''' routine is used to plot a large sized sprite given its height and width.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 85:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 84:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160;  ld&amp;#160;  c,3&amp;#160;  ;width&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160;  ld&amp;#160;  c,3&amp;#160;  ;width&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160;  ld&amp;#160;  ix,sprite&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160;  ld&amp;#160;  ix,sprite&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160;  call &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;putsprite&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160;  call &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;largeSprite&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160;  call fastcopy&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160;  call fastcopy&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160;  ;...&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160;  ;...&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Galandros</name></author>	</entry>

	<entry>
		<id>https://wikiti.brandonw.net/index.php?title=Z80_Routines:Graphic:putLargeSprite2&amp;diff=9214&amp;oldid=prev</id>
		<title>Galandros: created</title>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=Z80_Routines:Graphic:putLargeSprite2&amp;diff=9214&amp;oldid=prev"/>
				<updated>2010-06-25T09:06:39Z</updated>
		
		<summary type="html">&lt;p&gt;created&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Z80 Routines:Graphic|PutLargeSprite]]&lt;br /&gt;
[[Category:Z80 Routines|PutLargeSprite]]&lt;br /&gt;
&lt;br /&gt;
The '''put16xBsprite''' routine is used to plot a large sized sprite given its height and width.&lt;br /&gt;
&lt;br /&gt;
== Code ==&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
;-----&amp;gt; Draw a picture&lt;br /&gt;
;Input:	ix-&amp;gt;sprite&lt;br /&gt;
;	a=x&lt;br /&gt;
;	l=y&lt;br /&gt;
;	b=height	(in pixels)&lt;br /&gt;
;	c=width		(in bytes, e.g. 2 would be 16 pixels)&lt;br /&gt;
;Output: nothing&lt;br /&gt;
; All registers are destroyed except bc', de', hl'&lt;br /&gt;
largeSprite:&lt;br /&gt;
	di&lt;br /&gt;
	ex	af,af'&lt;br /&gt;
	ld	a,c&lt;br /&gt;
	push	af&lt;br /&gt;
	ex	af,af'&lt;br /&gt;
	ld	e,l&lt;br /&gt;
	ld	h,$00&lt;br /&gt;
	ld	d,h&lt;br /&gt;
	add	hl,de&lt;br /&gt;
	add	hl,de&lt;br /&gt;
	add	hl,hl&lt;br /&gt;
	add	hl,hl&lt;br /&gt;
	ld	e,a&lt;br /&gt;
	and	$07&lt;br /&gt;
	ld	c,a&lt;br /&gt;
	srl	e&lt;br /&gt;
	srl	e&lt;br /&gt;
	srl	e&lt;br /&gt;
	add	hl,de&lt;br /&gt;
	ld	de,gbuf&lt;br /&gt;
	add	hl,de&lt;br /&gt;
largeSpriteLoop1:&lt;br /&gt;
	push	hl&lt;br /&gt;
largeSpriteLoop2:&lt;br /&gt;
	ld	d,(ix)&lt;br /&gt;
	ld	e,$00&lt;br /&gt;
	ld	a,c&lt;br /&gt;
	or	a&lt;br /&gt;
	jr	z,largeSpriteSkip1&lt;br /&gt;
largeSpriteLoop3:&lt;br /&gt;
	srl	d&lt;br /&gt;
	rr	e&lt;br /&gt;
	dec	a&lt;br /&gt;
	jr	nz,largeSpriteLoop3&lt;br /&gt;
largeSpriteSkip1:&lt;br /&gt;
	ld	a,(hl)&lt;br /&gt;
	xor	d&lt;br /&gt;
	ld	(hl),a&lt;br /&gt;
	inc	hl&lt;br /&gt;
	ld	a,(hl)&lt;br /&gt;
	xor	e&lt;br /&gt;
	ld	(hl),a&lt;br /&gt;
	inc	ix&lt;br /&gt;
	ex	af,af'&lt;br /&gt;
	dec	a&lt;br /&gt;
	push	af&lt;br /&gt;
	ex	af,af'&lt;br /&gt;
	pop	af&lt;br /&gt;
	jr	nz,largeSpriteLoop2&lt;br /&gt;
	pop	hl&lt;br /&gt;
	pop	af&lt;br /&gt;
	push	af&lt;br /&gt;
	ex	af,af'&lt;br /&gt;
	ld	de,$0C&lt;br /&gt;
	add	hl,de&lt;br /&gt;
	djnz	largeSpriteLoop1&lt;br /&gt;
	pop	af&lt;br /&gt;
	ret&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
   ;...&lt;br /&gt;
   ld   e,8   ;y&lt;br /&gt;
   ld   a,16  ;x&lt;br /&gt;
   ld   b,10  ;height&lt;br /&gt;
   ld   c,3   ;width&lt;br /&gt;
   ld   ix,sprite&lt;br /&gt;
   call putsprite&lt;br /&gt;
   call fastcopy&lt;br /&gt;
   ;...&lt;br /&gt;
&lt;br /&gt;
sprite:&lt;br /&gt;
   .db %11111111,%11111111,%11111111&lt;br /&gt;
   .db %11111111,%11111111,%11111111&lt;br /&gt;
   .db %10000001,%10000001,%11111111&lt;br /&gt;
   .db %10000001,%10000001,%11111111&lt;br /&gt;
   .db %10000001,%10000001,%11111111&lt;br /&gt;
   .db %10000001,%10000001,%11111111&lt;br /&gt;
   .db %10000001,%10000001,%11111111&lt;br /&gt;
   .db %10000001,%10000001,%11111111&lt;br /&gt;
   .db %11111111,%11111111,%11111111&lt;br /&gt;
   .db %11111111,%11111111,%11111111&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Galandros</name></author>	</entry>

	</feed>