JAN: Difference between revisions
Jump to navigation
Jump to search
(JAN instruction) |
(Register notation uniformity fix) |
||
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
|Format=JAN <[[displacement|disp.]]>'' | |Format=JAN <[[displacement|disp.]]>'' | ||
|Code=130 400 | |Code=130 400 | ||
|Affected=If A<0 | |Affected=If A<0 P:=P+Δ | ||
|Architecture=[[ND-100]], [[ND-110 CPU|ND-110]] | |Architecture=[[ND-100]], [[ND-110 CPU|ND-110]] | ||
}} | }} | ||
'''JAN''' is an assembly instruction. If the [[A register]] is negative (bit 15 = 1) | '''JAN''' is an assembly instruction. If the [[A register]] is negative (bit 15 = 1) it jumps the program execution to the address of the [[program counter]] (P register) plus the value of [[displacement]], which can be in the range -128 .. 127. Else it continues the program execution at (P) + 1. | ||
== References == | == References == |
Latest revision as of 08:41, 21 March 2013
JAN | |
---|---|
Description | Jump if A negative |
Format | JAN <disp.> |
Code | 130 4008 |
Affected | If A<0 P:=P+Δ |
Type | User |
Architecture | ND-100, ND-110 |
JAN is an assembly instruction. If the A register is negative (bit 15 = 1) it jumps the program execution to the address of the program counter (P register) plus the value of displacement, which can be in the range -128 .. 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 79