JPC: Difference between revisions
Jump to navigation
Jump to search
m (Minor grammar changes) |
(Register notation uniformity fix) |
||
Line 4: | Line 4: | ||
|Format=JPC <[[displacement|disp.]]>'' | |Format=JPC <[[displacement|disp.]]>'' | ||
|Code=132 000 | |Code=132 000 | ||
|Affected= | |Affected=X:=X+1, If X>=0 P:=P+Δ | ||
|Architecture=[[ND-100]], [[ND-110 CPU|ND-110]] | |Architecture=[[ND-100]], [[ND-110 CPU|ND-110]] | ||
}} | }} |
Latest revision as of 08:43, 21 March 2013
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
- Norsk Data Document ND–06.014.02 ND-100 REFERENCE MANUAL Page 139
- Norsk Data Document ND–06.029.01 ND-110 Instruction Set Page 80