s3e: fix build break
[calu.git] / cpu / instr_decode.txt
1 dest = 22-19
2 src1 = 18-15
3 src2 = 14-11
4
5 add op=00000 c=1 d=0
6 addi op=00010 s=2 c=1 d=0 imm=14-3
7 sub op=00001 c=1 d=0
8 subi op=00011 s=2 c=1 d=0 imm=14-3
9 and op=00100 d=0
10 andx op=00101 h/l=2 f=1 d=0 imm=18-3
11 or op=00110 d=0
12 orx op=00111 h/l=2 f=1 d=0 imm=18-3
13 xor op=01000 d=0
14 xorx op=01001 h/l=2 f=1 d=0 imm=18-3
15 shift op=01010 l/r=3 a=2 c=1 d=0 imm=14-10
16 stackop op=01011 type=18-17
17
18 ====================== Ă„nderung der Registerpositionen (gleich wie andere!)
19 specialf op=01100 st=18
20 specialt op=01101 st=18
21 ======================
22
23 ldw op=01110 displ=14-0 (dest,src1)
24 ldh op=10000 displ=14-0 (dest,src1)
25 ldb op=10010 displ=14-0 (dest,src1)
26 ldi op=11010 imm=18-3 s=2 h/l=1 (dest)
27 stw op=01111 displ=14-0 (src=22-19,reg=18-15)
28 sth op=10001 displ=14-0 (src=22-19,reg=18-15)
29 stb op=10011 displ=14-0 (src=22-19,reg=18-15)
30 stx op=10101 displ=14-0 (src=22-19,reg=18-15)
31
32 jumpop op=10110 imm=22-7 type=3-2 bp=1 s=0
33 brreg op=10111 reg=22-19 type=2
34
35 cmp op=11000 reg1=22-19 reg2=18-15
36 cmpi op=11001 reg1=22-19 imm=18-3