Skip to content

Latest commit

 

History

History
104 lines (81 loc) · 1.21 KB

opcode_space.md

File metadata and controls

104 lines (81 loc) · 1.21 KB
Primary Opcodes

0000000 - UDF
0000001 - SYSCALL

0001000 - ALU1
0001011 - ROR
0001100 - BITFIELD

0001101 - MULTIPLY

0001110 - COMPARE

0001111 - SEL

0010000 - LOAD
0010001 - STORE

0110xxx - EXTENSION/RESERVED

0111100 - B
0111101 - BT
0111110 - BL
0111111 - BLT

1000100 - MFS
1000101 - MTS

1001000 - ALU1
1001001 - ALU2
1001010 - CLIP
1001011 - ROR

1001110 - COMPARE

1010000 - LOAD
1010001 - STORE

1110xxx - EXTENSION/RESERVED

1111000 - MOVH
1111001 - ADDH
1111010 - ORH
1111011 - XORH

1111100 - B
1111101 - BT
1111110 - BL
1111111 - BLT
Secondary Opcodes

ALU1
xxxxxxx000 - ADD
xxxxxxx001 - SUB
xxxxxxx010 - NEG
xxxxxxx011 - MOVN
xxxxxxx100 - OR
xxxxxxx101 - XOR
xxxxxxx110 - AND
xxxxxxx111 - ANDN

ALU2
xxxxxxx000 - REV
xxxxxxx010 - CLZ
xxxxxxx011 - CLO
xxxxxxx100 - SWPB
xxxxxxx101 - SWPH

BITFIELD
xxxxxxx000 - EXT
xxxxxxx001 - INS
xxxxxxx011 - INSZ
xxxxxxx100 - EXTS

CLIP
xxxxxxx0x0 - CLPB
xxxxxxx0x1 - CLPH
xxxxxxx1x0 - CLPBS
xxxxxxx1x1 - CLPHS

COMPARE
xxxxxxx000 - CEQ
xxxxxxx001 - CHI
xxxxxxx011 - CGT
xxxxxxx100 - CNE
xxxxxxx101 - CLS
xxxxxxx111 - CLE

LOAD
xxxxxxx000 - LB
xxxxxxx001 - LH
xxxxxxx010 - LW
xxxxxxx100 - LBS
xxxxxxx101 - LHS

STORE
xxxxxxxx00 - SB
xxxxxxxx01 - SH
xxxxxxxx10 - SW