JAN: Difference between revisions

From NDWiki
Jump to navigation Jump to search
(JAN instruction)
 
m (Minor grammar changes)
Line 8: Line 8:
}}
}}


'''JAN''' is an assembly instruction. If the [[A 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.
'''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 ==

Revision as of 13:29, 31 May 2010

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