s3e: fix build break
[calu.git] / 2_isa / data.ptex
1 ins ('32', 'stackop', 'pop/push/disc/fetch from/to stack', '4 | 5 | 4 | 2 | 17',
2 'Conditions | OpCode (01011) | Register Destination | Type | - ',
3 'This operation should not be used direct, instead the aliases pop, push, disc and fetch should be used.','','',
4 'pop-pop element from stack-3/00|disc-discard top element of stack-2/0000-3/01|fetch-get top element from stack-3/10|push-push element to stack-3/11');
5
6 #ins ('32', 'pop', 'pop from stack', '4 | 5 | 4 | 19', 'Conditions | OpCode | Register Destination | - ');
7
8 #ins ('32', 'push', 'push to stack', '4 | 5 | 4 |  19', 'Conditions | OpCode | Register Source | - ');
9
10 #ins ('32', 'disc', 'discard top-element from stack', '4 | 5 |  23', 'Conditions | OpCode | - ');
11
12 #ins ('32', 'fetch', 'get top-element from stack', '4 | 5 | 4 |  19', 'Conditions | OpCode | Register Destination | - ');
13
14
15 ins ('32', 'mov\\textit{special}from', 'Move from PSW/Stack', '4 | 5 | 4 | 1 | 18',
16 'Conditions | OpCode (01100) | Register Destination| st | - ',
17 '','','',
18 'movpf-move from PSW-3/1|movsf-move from Stack Pointer-3/0');
19
20 ins ('32', 'mov\\textit{special}to', 'Move to PSW/Stack', '4 | 5 | 4 | 1 | 18',
21 'Conditions | OpCode (01101) | Register Source | st | - ',
22 'This instruction will set PSW or Stack to the value stored in the source register. When the move is to PSW the flags will be set like they are set in the source register.','','',
23 'movpt-move to PSW-3/1|movst-move to Stack Pointer-3/0');
24
25 ins ('32', 'ldw', 'Load word; needs to be aligned to 32bit', '4 | 5 | 4 | 4 | 15',
26 'Conditions | OpCode (01110) | Register Destination|Register Address| displacement ');
27 ins ('32', 'ldh', 'Load half word; needs to be aligned to 16bit', '4 | 5 | 4 | 4 | 15',
28 'Conditions | OpCode (10000) | Register Destination|Register Address| displacement ');
29 ins ('32', 'ldb', 'Load byte, 8bit', '4 | 5 | 4 | 4 | 15',
30 'Conditions | OpCode (10010) | Register Destination|Register Address| displacement');
31
32 ins ('32', 'ldi', 'Load immediate', '4 | 5 | 4 | 16 | 1 | 1 | 1',
33 'Conditions | OpCode (11010) | Register Destination| Immediate | S | h/l | - ');
34
35 ins ('32', 'stw', 'store word; needs to be aligned to 32bit', '4 | 5 | 4 | 4 | 15',
36 'Conditions | OpCode (01111) | Register Source|Register Address| displacement ');
37 ins ('32', 'sth', 'store half word; needs to be aligned to 16bit', '4 | 5 | 4 | 4 | 15',
38 'Conditions | OpCode (10001) | Register Source|Register Address| displacement ');
39 ins ('32', 'stb', 'store byte, 8bit', '4 | 5 | 4 | 4 | 15',
40 'Conditions | OpCode (10011) | Register Source|Register Address| displacement ');
41
42 ins ('32', 'ldx', 'Load from program space', '4 | 5 | 4 | 4 | 15',
43 'Conditions | OpCode (10100) | Register Destination|Register Address| displacement ');
44
45 ins ('32', 'stx', 'Store to program space', '4 | 5 | 4 | 4 | 15',
46 'Conditions | OpCode (10101) | Register Source|Register Address| displacement ');