Commit | Line | Data |
---|---|---|
ef60d697 FF |
1 | MVP MP Macro Assembler Version 1.13 Mon Feb 10 20:13:33 1997 |
2 | Copyright (c) 1993-1995 Texas Instruments Incorporated | |
3 | ||
4 | add.s PAGE 1 | |
5 | ||
6 | 1 ; Test signed and unsigned addition instruction. | |
7 | 2 ; Test boundary conditions to ensure proper handling. | |
8 | 3 ; Note that unsigned addition still uses signed immediates. | |
9 | 4 | |
10 | 5 00000000 62FB000A add r10,r11,r12 ; Register form | |
11 | 6 00000004 20AC3FFF add 16383,r2,r4 ; Maximum positive short signed immediate | |
12 | 7 00000008 212C4000 add -16384,r4,r4 ; Minimum negative short signed immediate | |
13 | 8 0000000C 317B1000 add 16384,r5,r6 ; Minimum positive long signed immediate | |
14 | 00000010 00004000 | |
15 | 9 00000014 41FB1000 add -16385,r7,r8 ; Maximum negative short signed immediate | |
16 | 00000018 FFFFBFFF | |
17 | 10 0000001C 5ABB1000 add 2147483647,r10,r11 ; Maximum positive long signed immediate | |
18 | 00000020 7FFFFFFF | |
19 | 11 00000024 6B3B1000 add -2147483648,r12,r13 ; Minimum positive long signed immediate | |
20 | 00000028 80000000 | |
21 | 12 | |
22 | 13 0000002C 62FB200A addu r10,r11,r12 ; Register form | |
23 | 14 00000030 20ACBFFF addu 16383,r2,r4 ; Maximum positive short signed immediate | |
24 | 15 00000034 212CC000 addu -16384,r4,r4 ; Minimum negative short signed immediate | |
25 | 16 00000038 317B3000 addu 16384,r5,r6 ; Minimum positive long signed immediate | |
26 | 0000003C 00004000 | |
27 | 17 00000040 41FB3000 addu -16385,r7,r8 ; Maximum negative short signed immediate | |
28 | 00000044 FFFFBFFF | |
29 | 18 00000048 5ABB3000 addu 2147483647,r10,r11 ; Maximum positive long signed immediate | |
30 | 0000004C 7FFFFFFF | |
31 | 19 00000050 6B3B3000 addu -2147483648,r12,r13 ; Minimum positive long signed immediate | |
32 | 00000054 80000000 | |
33 | ||
34 | No Errors, No Warnings |