jielie

f95

Differences with f59:

Instructions

Each instruction word is 16-bit long, and is stored in big-endian.

Instruction bits Mnemonic
-000000000000000 nop
-000000000000010 ret
-000000000000011 reti
-000000010000000 popw
-000000010000001 pushw
-0000010Xxxxxxxx pop ‘Xxxxxxxx’
-0000011Xxxxxxxx push ‘Xxxxxxxx’
-0000100Xxxxxxxx decbz ‘Xxxxxxxx’
-0000101Xxxxxxxx decbzw ‘Xxxxxxxx’
-0000110Xxxxxxxx swap ‘Xxxxxxxx’
-0000111Xxxxxxxx swapw ‘Xxxxxxxx’
-0001YyyXxxxxxxx bn ‘Xxxxxxxx’, ‘Yyy’
-0010000Xxxxxxxx retlw #’Xxxxxxxx’
-0010010Xxxxxxxx xrlw #’Xxxxxxxx’
-0010100Xxxxxxxx orlw #’Xxxxxxxx’
-0010110Xxxxxxxx andw #’Xxxxxxxx’
-0011000Xxxxxxxx subiw #’Xxxxxxxx’
-0011010Xxxxxxxx subw #’Xxxxxxxx’
-0011100Xxxxxxxx addw #’Xxxxxxxx’
-0011110Xxxxxxxx movw #’Xxxxxxxx’
-0011111Xxxxxxxx movindr0 #’Xxxxxxxx’
-0100000Xxxxxxxx rr ‘Xxxxxxxx’
-0100001Xxxxxxxx rrw ‘Xxxxxxxx’
-0100010Xxxxxxxx rl ‘Xxxxxxxx’
-0100011Xxxxxxxx rlw ‘Xxxxxxxx’
-0100100Xxxxxxxx dec ‘Xxxxxxxx’
-0100101Xxxxxxxx decw ‘Xxxxxxxx’
-0100110Xxxxxxxx inc ‘Xxxxxxxx’
-0100111Xxxxxxxx incw ‘Xxxxxxxx’
-0101000Xxxxxxxx clr ‘Xxxxxxxx’
-0101001Xxxxxxxx xchw ‘Xxxxxxxx’
-0101010Xxxxxxxx not ‘Xxxxxxxx’
-0101011Xxxxxxxx notw ‘Xxxxxxxx’
-0101100Xxxxxxxx xrl ‘Xxxxxxxx’
-0101101Xxxxxxxx xrlw ‘Xxxxxxxx’
-0101110Xxxxxxxx orl ‘Xxxxxxxx’
-0101111Xxxxxxxx orlw ‘Xxxxxxxx’
-0110000Xxxxxxxx and ‘Xxxxxxxx’
-0110001Xxxxxxxx andw ‘Xxxxxxxx’
-0110100Xxxxxxxx incbz ‘Xxxxxxxx’
-0110101Xxxxxxxx incbzw ‘Xxxxxxxx’
-0110110Xxxxxxxx sbc ‘Xxxxxxxx’
-0110111Xxxxxxxx sbcw ‘Xxxxxxxx’
-0111000Xxxxxxxx sub ‘Xxxxxxxx’
-0111001Xxxxxxxx subw ‘Xxxxxxxx’
-0111010Xxxxxxxx adc ‘Xxxxxxxx’
-0111011Xxxxxxxx adcw ‘Xxxxxxxx’
-0111100Xxxxxxxx add ‘Xxxxxxxx’
-0111101Xxxxxxxx addw ‘Xxxxxxxx’
-0111110Xxxxxxxx mov ‘Xxxxxxxx’
-0111111Xxxxxxxx movw ‘Xxxxxxxx’
-1000YyyXxxxxxxx bs ‘Xxxxxxxx’, ‘Yyy’
-1001YyyXxxxxxxx bc ‘Xxxxxxxx’, ‘Yyy’
-1010YyyXxxxxxxx btbz ‘Xxxxxxxx’, ‘Yyy’
-1011YyyXxxxxxxx btbn ‘Xxxxxxxx’, ‘Yyy’
-110Xxxxxxxxxxxx goto ‘Xxxxxxxxxxxx0’
-111Xxxxxxxxxxxx call ‘Xxxxxxxxxxxx0’