-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEduardo_Clinio_12.TXT
103 lines (97 loc) · 2.14 KB
/
Eduardo_Clinio_12.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
103
0 32 128 LDA 128
2 16 131 STA 131
4 32 128 LDA 128
6 32 129 LDA 129
8 96 NOT
9 48 129 ADD 129
11 48 128 ADD 128
13 16 130 STA 130
15 32 131 LDA 131
17 48 128 ADD 128
19 16 131 STA 131
21 32 130 LDA 130
23 32 129 LDA 129
25 96 NOT
26 48 129 ADD 129
28 48 130 ADD 130
30 16 130 STA 130
32 32 130 LDA 130
34 160 38 JZ 38
36 128 15 JMP 15
38 32 131 LDA 131
40 0 NOP
41 32 132 LDA 132
43 16 135 STA 135
45 32 132 LDA 132
47 32 133 LDA 133
49 96 NOT
50 48 133 ADD 133
52 48 132 ADD 132
54 16 134 STA 134
56 32 135 LDA 135
58 48 132 ADD 132
60 16 135 STA 135
62 32 134 LDA 134
64 32 133 LDA 133
66 96 NOT
67 48 133 ADD 133
69 48 134 ADD 134
71 16 134 STA 134
73 32 134 LDA 134
75 160 79 JZ 79
77 128 56 JMP 56
79 32 135 LDA 135
81 0 NOP
82 32 136 LDA 136
84 32 135 LDA 135
86 96 NOT
87 48 133 ADD 133
89 48 136 ADD 136
91 16 137 STA 137
93 0 NOP
94 32 137 LDA 137
96 96 NOT
97 48 133 ADD 133
99 16 145 STA 145
101 32 131 LDA 131
103 48 145 ADD 145
105 16 131 STA 131
107 144 119 JN 119
109 160 125 JZ 125
111 32 147 LDA 147
113 48 133 ADD 133
115 16 147 STA 147
117 128 101 JMP 101
119 32 147 LDA 147
121 16 138 STA 138
123 128 156 JMP 156
125 128 150 JMP 150
127 0 NOP
150 32 147 LDA 147
152 48 133 ADD 133
154 16 138 STA 138
156 240 HLT
157 0 NOP
158 0 NOP
159 0 NOP
160 0 NOP
Eduardo Clinio Alves dos Santos
Eq 12: X = (D^2)/(C-B2)
*128 D
129 1
130 0
131 0
*132 B
133 1
134 0
135 B2
*136 C
137 (C - B2)
138 X
139 0
140 0
145 0
147 0
* Digite os n meros.
Para novo calculo os registradores dever o
estar conforme posi es acima: (128-147)