1
2.EXTERN MY_LABEL2;
3.section .text;
4
5//
6//7 LOGICAL OPERATIONS
7//
8
9//Dreg = Dreg & Dreg ; /* (a) */
10
11R7 = R7 & R7;
12R7 = R7 & R0;
13r7 = R7 & R1;
14
15R1 = R7 & R7;
16R2 = R7 & R0;
17r3 = R7 & R1;
18
19//Dreg = ~ Dreg ; /* (a)*/
20
21R7 = ~R7;
22R7 = ~R0;
23R0 = ~R7;
24R0 = ~R2;
25
26//Dreg = Dreg | Dreg ; /* (a) */
27
28R7 = R7 | R7;
29R7 = R7 | R1;
30R7 = R7 | R0;
31
32R1 = R7 | R7;
33R2 = R7 | R1;
34R3 = R7 | R0;
35
36//Dreg = Dreg ^ Dreg ; /* (a) */
37
38R7 = R7 ^ R7;
39R7 = R7 ^ R1;
40R7 = R7 ^ R0;
41
42R1 = R7 ^ R7;
43R2 = R7 ^ R1;
44R3 = R7 ^ R0;
45
46//Dreg_lo = CC = BXORSHIFT ( A0, Dreg ) ; /* (b) */
47R0.L = CC = BXORSHIFT(A0, R0);
48R0.L = CC = BXORSHIFT(A0, R1);
49
50R3.L = CC = BXORSHIFT(A0, R0);
51R3.L = CC = BXORSHIFT(A0, R1);
52
53//Dreg_lo = CC = BXOR ( A0, Dreg ) ; /* (b) */
54R0.L = CC = BXOR(A0, R0);
55R0.L = CC = BXOR(A0, R1);
56
57R3.L = CC = BXOR(A0, R0);
58R3.L = CC = BXOR(A0, R1);
59
60//Dreg_lo = CC = BXOR ( A0, A1, CC ) ; /* (b) */
61R0.L = CC = BXOR(A0, A1, CC);
62R0.L = CC = BXOR(A0, A1, CC);
63
64R3.L = CC = BXOR(A0, A1, CC);
65R3.L = CC = BXOR(A0, A1, CC);
66
67A0 = BXORSHIFT ( A0, A1, CC ) ; /* (b) */
68
69
70