Register Instructions
Order | A-Register | B-Register | Order | Notes |
003001 | ALSB | 002001 | BLSB | Skip if B1=0 |
003002 | AMSB | 002002 | BMSB | Skip if B16=0 |
007600 | ANEG | 006600 | BNEG | Skip if B17=1 |
007500 | AN0 | 006500 | BN0 | Skip if not zero |
007200 | APOS | 006200 | BPOS | Skip if B17=0 |
007100 | A0 | 006100 | B0 | Skip if zero |
007002 | CLA | 006002 | CLB | Clear |
002400 | CLC | Clear CARRY Flag | ||
006004 | CLGT | Clear GREATER THAN Flag | ||
005004 | CLSA | 004004 | CLSB | Clear B17 (Sign bit) |
007001 | COMPA | 006001 | COMPB | Ones-Complement |
004040 | COMPC | Complement CARRY Flag | ||
005002 | COMPSA | 004002 | COMPSB | Complement B17 (Sign bit) |
003010 | DECA | 002010 | DECB | Decrement by one |
005001 | ESWRA | 004001 | ESWRB | Enter Switch Register (read Switches into) |
003004 | INCA | 002004 | INCB | Increment by one |
003240 | LRA | 002240 | LRB | Rotate Left by one (excluding B17) |
003260 | LRAC | 002260 | LRBC | Rotate Left by one including CARRY (excluding B17) |
001600+n | LRAn | 000600+n | LRBn | Rotate Left by n (excluding B17) |
003300 | LSA | 002300 | LSB | Left Shift by one (excluding B17) |
001700+n | LSAn | 000700+n | LSBn | Left Shift by n (excluding B17) |
003040 | RRA | 002040 | RRB | Rotate Right by one (excluding B17) |
003060 | RRAC | 002060 | RRBC | Rotate Right by one including CARRY (excluding B17) |
001400+n | RRAn | 000400+n | RRBn | Rotate Right by n (excluding B17) |
003100 | RSA | 002100 | RSB | Right Shift by one (excluding B17) |
001500+n | RSAn | 000500+n | RSBn | Right Shift by n (excluding B17) |
001520+n | RSAAn | 000520+n | RSABn | Right Shift by n Arithmetic |
001001 | SETGT | Set GREATER THAN Flag | ||
005006 | SETSA | 004006 | SETSB | Set B17 (Sign bit) |
006440 | SKC | Skip if CARRY Flag=1 | ||
006410 | SKGT | Skip if GREATER THAN Flag=1 | ||
004020 | SKIP | Skip unconditionally | ||
006040 | SKNC | Skip if CARRY Flag=0 | ||
006010 | SKNGT | Skip if GREATER THAN Flag=0 | ||
005010 | SWAPA | 004010 | SWAPB | Swap Bytes |
The maximum value of n is 15 (decimal).
Micro-Programming Rules
Instructions on the same row in the above table may be combined in a single instruction, subject to the following:
- Instructions will be executed in order from the left, except CLEAR SIGN which on some machines precedes CLEAR.
- If skips are combined, the skip will occur only if all conditions are fulfilled, except if AMSB and ALSB (or BMSB and BLSB) are combined the skip will occur if either or both conditions are met.
- The effect of combining SHIFT and ROTATE or INC and DEC is undefined.
For example:
005006 combines CLSA and COMPSA in that order to set the sign (B17) of the A-Register.
007502 combines AN0 and CLA to test for zero in, then clear, the A-Register.
005006 combines CLSA and COMPSA in that order to set the sign (B17) of the A-Register.
007502 combines AN0 and CLA to test for zero in, then clear, the A-Register.