<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=Z80%3AOpcodes%3ACALL</id>
	<title>Z80:Opcodes:CALL - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=Z80%3AOpcodes%3ACALL"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=Z80:Opcodes:CALL&amp;action=history"/>
	<updated>2026-06-17T02:00:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>http://learn.cemetech.net/index.php?title=Z80:Opcodes:CALL&amp;diff=294&amp;oldid=prev</id>
		<title>Maintenance script: Initial automated import</title>
		<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=Z80:Opcodes:CALL&amp;diff=294&amp;oldid=prev"/>
		<updated>2016-02-05T22:22:11Z</updated>

		<summary type="html">&lt;p&gt;Initial automated import&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- Short summary of instruction --&amp;gt;&lt;br /&gt;
Pushes the address after the CALL instruction (PC+3) onto the stack and jumps to the label. Can also take conditions.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Syntax for this instruction --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    call label			;unconditional call&lt;br /&gt;
    call cond.,label		;conditional call&lt;br /&gt;
&lt;br /&gt;
=== Allowed Instructions ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- All possible inputs --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    call label		;always calls&lt;br /&gt;
    &lt;br /&gt;
    call c,label		;calls if C flag is set&lt;br /&gt;
    call nc,label		;calls if C flag is reset&lt;br /&gt;
    &lt;br /&gt;
    call z,label		;calls if Z flag is set&lt;br /&gt;
    call nz,label		;calls if Z flag is reset&lt;br /&gt;
    &lt;br /&gt;
    call m,label		;calls if S flag is set&lt;br /&gt;
    call p,label		;calls if S flag is reset&lt;br /&gt;
    &lt;br /&gt;
    call pe,label		;calls if P/V is set&lt;br /&gt;
    call po,label		;calls if P/V is reset&lt;br /&gt;
&lt;br /&gt;
== Effects ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- What the instruction does to flags --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Flags are preserved.&lt;br /&gt;
&lt;br /&gt;
== Uses ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- What the instruction can be used for --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The most common use of CALL is to create routines that can be used multiple times.&lt;br /&gt;
&lt;br /&gt;
== T-States ==&lt;br /&gt;
cc is condition: NZ, Z, NC, C, PO, PE, P, M&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| XX || 17 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| || condition true || condition false &lt;br /&gt;
|-&lt;br /&gt;
| cc,XX || 17 || 10 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
[[Z80:Opcodes:BIT|BIT]],[[Z80:Opcodes:CP|CP]],[[Z80:Opcodes:CPD|CPD]],[[Z80:Opcodes:CPDR|CPDR]],[[Z80:Opcodes:CPI|CPI]],[[Z80:Opcodes:CPIR|CPIR]],[[Z80:Opcodes:DJNZ|DJNZ]],[[Z80:Opcodes:JP|JP]],[[Z80:Opcodes:JR|JR]],[[Z80:Opcodes:RET|RET]]&lt;br /&gt;
&amp;lt;!-- Other instructions that are related to this one --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
[[Category:Z80 Assembly]]&lt;br /&gt;
[[Category:Z80 Heaven]]&lt;br /&gt;
[[Category:Z80 Opcodes]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>