Each instruction word is 16-bit long, and is stored in big-endian.
Instruction bits | Mnemonic |
---|---|
–00000000000000 | nop |
–00000000000010 | ret |
–00000000000011 | reti |
–00000010000000 | popw |
–00000010000001 | pushw |
–0000010Xxxxxxx | pop ‘Xxxxxxx’ |
–0000011Xxxxxxx | push ‘Xxxxxxx’ |
–0000100Xxxxxxx | decbz ‘Xxxxxxx’ |
–0000101Xxxxxxx | decbzw ‘Xxxxxxx’ |
–0000110Xxxxxxx | swap ‘Xxxxxxx’ |
–0000111Xxxxxxx | swapw ‘Xxxxxxx’ |
–0001YyyXxxxxxx | bn ‘Xxxxxxx’, ‘Yyy’ |
–001000Xxxxxxxx | retlw #’Xxxxxxxx’ |
–001001Xxxxxxxx | xrlw #’Xxxxxxxx’ |
–001010Xxxxxxxx | orlw #’Xxxxxxxx’ |
–001011Xxxxxxxx | andw #’Xxxxxxxx’ |
–001100Xxxxxxxx | subiw #’Xxxxxxxx’ |
–001101Xxxxxxxx | subw #’Xxxxxxxx’ |
–001110Xxxxxxxx | addw #’Xxxxxxxx’ |
–001111Xxxxxxxx | movw #’Xxxxxxxx’ |
–0100000Xxxxxxx | rr ‘Xxxxxxx’ |
–0100001Xxxxxxx | rrw ‘Xxxxxxx’ |
–0100010Xxxxxxx | rl ‘Xxxxxxx’ |
–0100011Xxxxxxx | rlw ‘Xxxxxxx’ |
–0100100Xxxxxxx | dec ‘Xxxxxxx’ |
–0100101Xxxxxxx | decw ‘Xxxxxxx’ |
–0100110Xxxxxxx | inc ‘Xxxxxxx’ |
–0100111Xxxxxxx | incw ‘Xxxxxxx’ |
–0101000Xxxxxxx | clr ‘Xxxxxxx’ |
–0101001Xxxxxxx | xchw ‘Xxxxxxx’ |
–0101010Xxxxxxx | not ‘Xxxxxxx’ |
–0101011Xxxxxxx | notw ‘Xxxxxxx’ |
–0101100Xxxxxxx | xrl ‘Xxxxxxx’ |
–0101101Xxxxxxx | xrlw ‘Xxxxxxx’ |
–0101110Xxxxxxx | orl ‘Xxxxxxx’ |
–0101111Xxxxxxx | orlw ‘Xxxxxxx’ |
–0110000Xxxxxxx | and ‘Xxxxxxx’ |
–0110001Xxxxxxx | andw ‘Xxxxxxx’ |
–0110100Xxxxxxx | incbz ‘Xxxxxxx’ |
–0110101Xxxxxxx | incbzw ‘Xxxxxxx’ |
–0110110Xxxxxxx | sbc ‘Xxxxxxx’ |
–0110111Xxxxxxx | sbcw ‘Xxxxxxx’ |
–0111000Xxxxxxx | sub ‘Xxxxxxx’ |
–0111001Xxxxxxx | subw ‘Xxxxxxx’ |
–0111010Xxxxxxx | adc ‘Xxxxxxx’ |
–0111011Xxxxxxx | adcw ‘Xxxxxxx’ |
–0111100Xxxxxxx | add ‘Xxxxxxx’ |
–0111101Xxxxxxx | addw ‘Xxxxxxx’ |
–0111110Xxxxxxx | mov ‘Xxxxxxx’ |
–0111111Xxxxxxx | movw ‘Xxxxxxx’ |
–1000YyyXxxxxxx | bs ‘Xxxxxxx’, ‘Yyy’ |
–1001YyyXxxxxxx | bc ‘Xxxxxxx’, ‘Yyy’ |
–1010YyyXxxxxxx | btbz ‘Xxxxxxx’, ‘Yyy’ |
–1011YyyXxxxxxx | btbn ‘Xxxxxxx’, ‘Yyy’ |
–110Xxxxxxxxxxx | goto ‘Xxxxxxxxxxx0’ |
–111Xxxxxxxxxxx | call ‘Xxxxxxxxxxx0’ |