s3e: fix build break
[calu.git] / 2_isa / arith.ptex
1 ins ('32', 'add', 'Add',
2 '4 | 5 | 4 | 4 | 4 | 9 | 1 | 1',
3 'Conditions | OpCode (00000) | Register Destination|Register A (Source1)| Register B (Source2) | - | C | D',
4 'Adds register A and register B and saves the result in register Destination',
5 'is set to the MSB of the result | is set if addition has a carry out | is set if a overflow occurred | is set if the result is zero ',
6 'add  r0, r2, r4 ; add low bytes
7  addc r1, r3, r5 ; add high bytes');
8
9 ins ('32', 'addi', 'Add im', '4 | 5 | 4 | 4 | 12 | 1 | 1 | 1', 'Conditions | OpCode (00010) | Register Destination|Register A (Source1)| Immediate | S | C | D',
10 'Adds register A and immediate and saves the result in register Destination',
11 '','',
12 'mov-Move-4/000000000000-5/0-6/0-7/0');
13
14 # ins ('32', 'addx', 'Add im 16bit', '4 | 5 | 4 | 16 | 1 | 1 | 1', 'Conditions | OpCode | Register Destination| Immediate | H/L | S | C');
15
16 ins ('32', 'sub', 'Sub', '4 | 5 | 4 | 4 | 4 | 9 | 1 | 1', 'Conditions | OpCode (00001) | Register Destination|Register A (Source1)| Register B (Source2) | - | C | D');
17
18 ins ('32', 'subi', 'Sub im', '4 | 5 | 4 | 4 | 12 | 1 | 1 | 1', 'Conditions | OpCode (00011) | Register Destination|Register A (Source1)| Immediate | S | C | D');
19
20 # ins ('32', 'subx', 'Sub im 16bit', '4 | 5 | 4 | 16 | 1 | 1 | 1', 'Conditions | OpCode | Register Destination| Immediate | H/L | S | C');
21
22