-
Notifications
You must be signed in to change notification settings - Fork 0
/
assembly.txt
102 lines (98 loc) · 4.65 KB
/
assembly.txt
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
intruder_detector: file format elf32-littleriscv
Disassembly of section .text:
00010074 <main>:
10074: ff010113 addi sp,sp,-16
10078: 00812623 sw s0,12(sp)
1007c: 01010413 addi s0,sp,16
10080: 001f7713 andi a4,t5,1
10084: 82018793 addi a5,gp,-2016 # 11210 <magpin>
10088: 00e7a023 sw a4,0(a5)
1008c: 002f7713 andi a4,t5,2
10090: 82018793 addi a5,gp,-2016 # 11210 <magpin>
10094: 00e7a223 sw a4,4(a5)
10098: 004f7713 andi a4,t5,4
1009c: 82018793 addi a5,gp,-2016 # 11210 <magpin>
100a0: 00e7a423 sw a4,8(a5)
100a4: 82018793 addi a5,gp,-2016 # 11210 <magpin>
100a8: 0007a783 lw a5,0(a5)
100ac: 02079c63 bnez a5,100e4 <main+0x70>
100b0: 00100713 li a4,1
100b4: 80e1a823 sw a4,-2032(gp) # 11200 <_edata>
100b8: 80c1a783 lw a5,-2036(gp) # 111fc <buzzerpin_val>
100bc: 00ff7f33 and t5,t5,a5
100c0: 040f6f13 ori t5,t5,64
100c4: 81418793 addi a5,gp,-2028 # 11204 <ledpin>
100c8: 00100713 li a4,1
100cc: 00e7a023 sw a4,0(a5)
100d0: 000117b7 lui a5,0x11
100d4: 1f078793 addi a5,a5,496 # 111f0 <ledpin_val>
100d8: 0007a783 lw a5,0(a5)
100dc: 00ff7f33 and t5,t5,a5
100e0: 008f6f13 ori t5,t5,8
100e4: 82018793 addi a5,gp,-2016 # 11210 <magpin>
100e8: 0047a783 lw a5,4(a5)
100ec: 02079c63 bnez a5,10124 <main+0xb0>
100f0: 00100713 li a4,1
100f4: 80e1a823 sw a4,-2032(gp) # 11200 <_edata>
100f8: 80c1a783 lw a5,-2036(gp) # 111fc <buzzerpin_val>
100fc: 00ff7f33 and t5,t5,a5
10100: 040f6f13 ori t5,t5,64
10104: 81418793 addi a5,gp,-2028 # 11204 <ledpin>
10108: 00100713 li a4,1
1010c: 00e7a223 sw a4,4(a5)
10110: 000117b7 lui a5,0x11
10114: 1f078793 addi a5,a5,496 # 111f0 <ledpin_val>
10118: 0047a783 lw a5,4(a5)
1011c: 00ff7f33 and t5,t5,a5
10120: 010f6f13 ori t5,t5,16
10124: 82018793 addi a5,gp,-2016 # 11210 <magpin>
10128: 0087a783 lw a5,8(a5)
1012c: 02079c63 bnez a5,10164 <main+0xf0>
10130: 00100713 li a4,1
10134: 80e1a823 sw a4,-2032(gp) # 11200 <_edata>
10138: 80c1a783 lw a5,-2036(gp) # 111fc <buzzerpin_val>
1013c: 00ff7f33 and t5,t5,a5
10140: 040f6f13 ori t5,t5,64
10144: 81418793 addi a5,gp,-2028 # 11204 <ledpin>
10148: 00100713 li a4,1
1014c: 00e7a423 sw a4,8(a5)
10150: 000117b7 lui a5,0x11
10154: 1f078793 addi a5,a5,496 # 111f0 <ledpin_val>
10158: 0087a783 lw a5,8(a5)
1015c: 00ff7f33 and t5,t5,a5
10160: 020f6f13 ori t5,t5,32
10164: 82018793 addi a5,gp,-2016 # 11210 <magpin>
10168: 0007a783 lw a5,0(a5)
1016c: f0078ae3 beqz a5,10080 <main+0xc>
10170: 82018793 addi a5,gp,-2016 # 11210 <magpin>
10174: 0047a783 lw a5,4(a5)
10178: f00784e3 beqz a5,10080 <main+0xc>
1017c: 82018793 addi a5,gp,-2016 # 11210 <magpin>
10180: 0087a783 lw a5,8(a5)
10184: ee078ee3 beqz a5,10080 <main+0xc>
10188: 8001a823 sw zero,-2032(gp) # 11200 <_edata>
1018c: 80c1a783 lw a5,-2036(gp) # 111fc <buzzerpin_val>
10190: 00ff7f33 and t5,t5,a5
10194: 000f6f13 ori t5,t5,0
10198: 81418793 addi a5,gp,-2028 # 11204 <ledpin>
1019c: 0007a023 sw zero,0(a5)
101a0: 81418793 addi a5,gp,-2028 # 11204 <ledpin>
101a4: 0007a223 sw zero,4(a5)
101a8: 81418793 addi a5,gp,-2028 # 11204 <ledpin>
101ac: 0007a423 sw zero,8(a5)
101b0: 000117b7 lui a5,0x11
101b4: 1f078793 addi a5,a5,496 # 111f0 <ledpin_val>
101b8: 0007a783 lw a5,0(a5)
101bc: 00ff7f33 and t5,t5,a5
101c0: 000f6f13 ori t5,t5,0
101c4: 000117b7 lui a5,0x11
101c8: 1f078793 addi a5,a5,496 # 111f0 <ledpin_val>
101cc: 0047a783 lw a5,4(a5)
101d0: 00ff7f33 and t5,t5,a5
101d4: 000f6f13 ori t5,t5,0
101d8: 000117b7 lui a5,0x11
101dc: 1f078793 addi a5,a5,496 # 111f0 <ledpin_val>
101e0: 0087a783 lw a5,8(a5)
101e4: 00ff7f33 and t5,t5,a5
101e8: 000f6f13 ori t5,t5,0
101ec: e95ff06f j 10080 <main+0xc>