KUE-CHIP2とは |
---|
KUE-CHIP2とKUE-CHIP2教育用ボード |
KUE-CHIP2の命令仕様 |
アセンブラ文法 |
命令セット |
Shift/Rotate命令の機能 |
フラグ機能 |
命令コード早見表 |
KUE-CHIP2シミュレータJAVA |
すべて「KUE-CHIP2教育用ボードリファレンスマニュアル」からの抜粋です
CF: Carry Flag, VF: oVerflow Flag, NF: Negative Flag, ZF: Zero Flag
略記号 | 命令機能の概略 | 実行への影響† | 実行後の状態‡ | ||||||
---|---|---|---|---|---|---|---|---|---|
CF | VF | NF | ZF | CF | VF | NF | ZF | ||
NOP | No OPeration | - | - | - | - | - | - | - | - |
HLT | HaLT | - | - | - | - | - | - | - | - |
OUT | OUTput | - | - | - | - | - | - | - | - |
IN | INput | - | - | - | - | - | - | - | - |
RCF | Reset Carry Flag | - | - | - | - | 0 | - | - | - |
SCF | Set Carry Flag | - | - | - | - | 1 | - | - | - |
SRA | Shift Right Arithmetically | - | - | - | - | b0 | 0 | N | Z |
SLA | Shift Left Arithmetically | - | - | - | - | b7 | V | N | Z |
SRL | Shift Right Logically | - | - | - | - | b0 | 0 | N | Z |
SLL | Shift Left Logically | - | - | - | - | b7 | 0 | N | Z |
RRA | Rotate Right Arithmetically | b7 | - | - | - | b0 | 0 | N | Z |
RLA | Rotate Left Arithmetically | b0 | - | - | - | b7 | V | N | Z |
RRL | Rotate Right Logically | - | - | - | - | b0 | 0 | N | Z |
RLL | Rotate Left Logically | - | - | - | - | b7 | 0 | N | Z |
LD | LoaD | - | - | - | - | - | - | - | - |
ST | STore | - | - | - | - | - | - | - | - |
SBC | SuBtract with Carry | c | - | - | - | C | V | N | Z |
ADC | ADd with Carry | c | - | - | - | C | V | N | Z |
SUB | SUBtract | - | - | - | - | - | V | N | Z |
ADD | ADD | - | - | - | - | - | V | N | Z |
EOR | Exclusive OR | - | - | - | - | - | 0 | N | Z |
OR | OR | - | - | - | - | - | 0 | N | Z |
AND | AND | - | - | - | - | - | 0 | N | Z |
CMP | CoMPare | - | - | - | - | - | V | N | Z |
BA | Branch Always | - | - | - | - | - | - | - | - |
BVF | Branch on oVerFlow | - | VF | - | - | - | - | - | - |
BNZ | Branch on Not Zero | - | - | - | ZF |
- | - | - | - |
BZ | Branch on Zero | - | - | - | ZF | - | - | - | - |
BZP | Branch on Zero or Positive | - | - | NF | - | - | - | - | - |
BN | Branch on Negative | - | - | NF | - | - | - | - | - |
BP | Branch on Positive | - | - | NF∨ZF |
- | - | - | - | |
BZN | Branch on Zero or Negative | - | - | NF∨ZF | - | - | - | - | |
BNI | Branch on No Input | - | - | - | - | - | - | - | - |
BNO | Branch on No Output | - | - | - | - | - | - | - | - |
BNC | Branch on Not Carry | CF | - | - | - | - | - | - | - |
BC | Branch on Carry | CF | - | - | - | - | - | - | - |
BGE | Branch on Greater than or Equal | - | VF⨁NF | - | - | - | - | - | |
BLT | Branch on Less Than | - | VF⨁NF | - | - | - | - | - | |
BGT | Branch on Greater Than | - | (VF⨁NF)∨ZF |
- | - | - | - | ||
BLE | Branch on Less than or Equal | - | (VF⨁NF)∨ZF | - | - | - | - |