Difference between revisions of "JPC"

From NDWiki
Jump to: navigation, search
(JPC instruction)
 
m (Minor grammar changes)
Line 8: Line 8:
 
}}
 
}}
  
'''JPC''' is an assembly instruction. It increment the [[X register]] by one. If the X register is positive or zero (bit 15 = 0), 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.
+
'''JPC''' is an assembly instruction. It increments the [[X register]] by one. If the X register is positive or zero (bit 15 = 0), it jumps the program execution to the address of the [[program counter]] (P register) plus the value of [[displacement]], which can be between -128 to 127. Else it continues the program execution at (P) + 1.
  
 
== References ==
 
== References ==

Revision as of 13:08, 31 May 2010

JPC
Description Count and jump if X register is positive or zero.
Format JPC <disp.>
Code 132 0008
Affected (X):=(X)+1, If (X)>=0 (P):=(P)+Δ
Type User
Architecture ND-100, ND-110

JPC is an assembly instruction. It increments the X register by one. If the X register is positive or zero (bit 15 = 0), it jumps the program execution to the address of the program counter (P register) plus the value of displacement, which can be between -128 to 127. Else it continues the program execution at (P) + 1.

References