<?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%3AJP</id>
	<title>Z80:Opcodes:JP - 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%3AJP"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=Z80:Opcodes:JP&amp;action=history"/>
	<updated>2026-05-30T23:19:38Z</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:JP&amp;diff=258&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:JP&amp;diff=258&amp;oldid=prev"/>
		<updated>2016-02-05T21:57:09Z</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;
Absolute jumps to the address. Can be conditional or unconditional.  JP takes one more byte than [[Z80:Opcodes:JR|JR]], but is also slightly faster, so decide whether speed or size is more important before choosing JP or [[Z80:Opcodes:JR|JR]]. JP (HL), JP (IX), and JP (IY) are unconditional and are the fastest jumps, and do not take more bytes than other jumps.&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;
    JP NN			;unconditional jump&lt;br /&gt;
    JP cond.,NN		;conditional jump&lt;br /&gt;
    JP (reg16)            ;HL, IX and IY only&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;
    ;Constants&lt;br /&gt;
    JP NN		;no condition&lt;br /&gt;
    JP C,NN		;jumps if C is set&lt;br /&gt;
    JP NC,NN		;jumps if C is reset&lt;br /&gt;
    JP Z,NN		;jumps if Z is set&lt;br /&gt;
    JP NZ,NN	;jumps if Z is reset&lt;br /&gt;
    JP M,NN		;jumps if S is set&lt;br /&gt;
    JP P,NN		;jumps if S is reset&lt;br /&gt;
    JP PE,NN	;jumps if P/V is set&lt;br /&gt;
    JP PO,NN	;jumps if P/V is reset&lt;br /&gt;
    &lt;br /&gt;
    ;HL points to address&lt;br /&gt;
    JP (HL)&lt;br /&gt;
    &lt;br /&gt;
    ;IX points to address&lt;br /&gt;
    JP (IX)&lt;br /&gt;
    &lt;br /&gt;
    ;IY points to address&lt;br /&gt;
    JP (IY)&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;
All flags 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;
== T-States ==&lt;br /&gt;
cc is condition: NZ, Z, NC, C, PO, PE, P, M&lt;br /&gt;
{|&lt;br /&gt;
| XX || 10 &lt;br /&gt;
|-&lt;br /&gt;
| cc,XX || 10 &lt;br /&gt;
|-&lt;br /&gt;
| (hl) || 4 &lt;br /&gt;
|-&lt;br /&gt;
| (ix) || 8 &lt;br /&gt;
|-&lt;br /&gt;
| (iy) || 8 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Other instructions that are related to this one --&amp;gt;&lt;br /&gt;
[[Z80:Opcodes:BIT|BIT]],[[Z80:Opcodes:CALL|CALL]],[[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:JR|JR]]&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>