-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogicalOprators.asm
46 lines (31 loc) · 915 Bytes
/
logicalOprators.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
.data
.text
#mainand:
# addi $t0,$zero ,4
# addi $t1,$zero, 5
# and $t2,$t0,$t1
# andi $t1,$t1,9
#mainor:
# addi $t0,$zero ,4
# addi $t1,$zero, 5
#
# #or $t2,$t0,$t1
# ori $t0, $t0, 9
# mainXor:
# addi $t0,$zero ,10
# addi $t1,$zero, 12
# xor $t2,$t1,$t0
# xori $t0,$t0, 5
#mainNot: #I didn't understood this one what the fudge.#
# addi $t0,$zero ,15
# nor $t1,$t0,$zero
# mainShiftLogical:
# addi $t0,$zero ,5
# addi $t1,$zero ,2
# sll $t1, $t0,2
# srl $t1, $t0,2
# sllv $t2,$t0,$t1
# srlv $t2,$t0,$t1
#mainRol:
# addi $t0,$zero ,5
# addi $t1,$zero ,2