Format |
Syntax: |
Operation: |
Operands: |
Architecture revision |
Opcode | ||||||
1 |
incjosp imm |
if ( JOSP[3:0] + imm < 0 ) TRAP 4 else if (JOSP[3:0] + imm > 8 ) TRAP 3 else JOSP = JOSP + imm; |
imm ∈ {-4, -3, -2, -1, 1, 2, 3, 4} |
Rev1+ |
|
Increment the system register "Java Operand Stack Pointer" with value.
imm3 |
imm |
100 |
-4 |
101 |
-3 |
110 |
-2 |
111 |
-1 |
000 |
1 |
001 |
2 |
010 |
3 |
011 |
4 |
Q: |
Not affected |
V: |
Not affected |
N: |
Not affected |
Z: |
Not affected |
C: |
Not affected |
When trapped, this instruction will destroy R12. It is the programmer's responsibility to keep the R12value if needed.