About KUE-CHIP2 |
---|
KUE-CHIP2 and KUE-CHIP2 educational board |
Instruction set for KUE-CHIP2 |
Assembly Syntax |
Instruction Set |
Function of Shift and Rotate Instructions |
Flag Functions |
Quick Instruction Code Chart |
KUE-CHIP2 Simulator JAVA |
All excerpts are from the "KUE-CHIP2 Educational Board Reference Manual"
ACC | Accumulator |
IX | Index Register |
d | Immediate Address |
[d] | Absolute Address (Code Region) |
(d) | Absolute Address (Data Region) |
[IX+d] | Indexed Address (Code Region) |
(IX+d) | Indexed Address (Data Region) |
{ea} | Entire Address Mode |
{reg} | Register Address Mode |
{imm} | Immediate Address Mode |
{ma} | Memory Reference Address Mode |
ACC | IX | d | [d] | (d) | [IX+d] | (IX+d) | |
{ea} | ◯ | ◯ | ◯ | ◯ | ◯ | ◯ | ◯ |
{reg} | ◯ | ◯ | ⨯ | ⨯ | ⨯ | ⨯ | ⨯ |
{imm} | ⨯ | ⨯ | ◯ | ⨯ | ⨯ | ⨯ | ⨯ |
{ma} | ⨯ | ⨯ | ⨯ | ◯ | ◯ | ◯ | ◯ |
Mnemonic | Address Mode | Instruction Function | |
---|---|---|---|
HLT
NOP |
Halt
No OPeration | ||
IN
OUT |
INput
OUTput | ||
SCF
RCF |
Set Carry Flag
Reset Carry Flag | ||
LD
ST |
{reg},{ea}
{reg},{ma} |
LoaD
STore | |
ADD
ADC SUB SBC CMP AND OR EOR |
{reg},{ea}
{reg},{ea} {reg},{ea} {reg},{ea} {reg},{ea} {reg},{ea} {reg},{ea} {reg},{ea} |
ADD
ADd with Carry SUBtract SuBtract with Carry CoMPare AND OR Exclusive OR | |
Ssm
Rsm |
{reg}
{reg} |
Shift
Rotate | |
sm |
RA
LA RL LL |
Right Arithmetically
Left Arithmerically Right Logically Left Logically | |
Bcc | {imm} | Branch | |
cc |
A
VF NZ Z ZP N P ZN NI NO NC C GE LT GT LE |
Always
on oVerFlow on Not Zero on Zero on Zero or Positive on Negative on Positive on Zero or Negative on No Input on No Output on No Carry on Carry on Greater than or Equal on Less Than on Greater Than on Less than or Equal |