JXN: Difference between revisions

From NDWiki
Jump to navigation Jump to search
(JXN instruction)
 
(Register notation uniformity fix)
Line 4: Line 4:
|Format=JXN <[[displacement|disp.]]>''
|Format=JXN <[[displacement|disp.]]>''
|Code=133&nbsp;400
|Code=133&nbsp;400
|Affected=If X<0 (P):=(P)+&Delta;  
|Affected=If X<0 P:=P+&Delta;  
|Architecture=[[ND-100]], [[ND-110 CPU|ND-110]]
|Architecture=[[ND-100]], [[ND-110 CPU|ND-110]]
}}
}}

Revision as of 08:44, 21 March 2013

JXN
Description Jump if X negative
Format JXN <disp.>
Code 133 4008
Affected If X<0 P:=P+Δ
Type User
Architecture ND-100, ND-110

JXN is an assembly instruction. If the X register is negative (bit 15 = 1), it jump the program execution to the address of the program counter (P register) plus the value of displacement, that can be between -128 to 127. Else it continue the program execution at (P) + 1.

References