You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./creator.sh -a ./architecture/MIPS_32.json -s ./examples/MIPS/example2.txt -o min -r output.txt.
80
+
./creator.sh -a ./architecture/MIPS_32.json -s ./examples/MIPS/example2.txt -o min -r output.txt
80
81
```
81
82
82
83
Output:
@@ -132,8 +133,9 @@ Examples:
132
133
133
134
A line break cannot be printed as a string (print_string), it has to be printed as a character (print_char). The following code can be used to print it:
134
135
```
135
-
li $v0 11 # print_char
136
-
li $a0 '\n' # Loads the ASCII value of the character into the register a0
136
+
li a0 '\n' # Loads the ASCII value of the character into the register a0
137
+
li a7 11 # print_char syscall
138
+
ecall
137
139
```
138
140
139
141
* Can you put two labels consecutively?
@@ -143,13 +145,101 @@ It is not allowed. The instructions can only be associated with one label. If a
143
145
Example of incorrect two consecutive labels:
144
146
```
145
147
label1:
146
-
label2: li $t0 1
148
+
label2: li t0 1
147
149
```
148
150
149
151
Alternative correct code with the same functionality:
150
152
```
151
-
label1: li $t0 1
152
-
label2: add $t2 $t1 $t0
153
+
label1: li t0 1
154
+
label2: add t2 t1 t0
153
155
154
156
syscall
155
157
```
158
+
159
+
160
+
## Add or modify an architecture
161
+
162
+
<html>
163
+
<table>
164
+
165
+
<tr>
166
+
<td>Part of the architecture
167
+
</td>
168
+
<td>Create
169
+
</td>
170
+
<td>Edit
171
+
</td>
172
+
</tr>
173
+
174
+
<tr>
175
+
<td>Component
176
+
</td>
177
+
<td>Create a new component:<br>
178
+
Allows you to create a new set of integer, floating point, or control registers.<br>
Allows you to create a new instruction within the desired architecture.
208
+
To do this, enter the name of the instruction, the type of instruction it will be, the fields it will have with their corresponding bits, the syntax the instruction will follow and, finally, the definition of the instruction.
It allows modifying an instruction within the desired architecture, being able to modify its name, the fields it uses, the syntax the instruction follows and, finally, its definition.
Allows you to create a new pseudoinstruction within the desired architecture. To do this, you must enter the name of the pseudoinstruction, the fields it will have with their corresponding bits, the syntax the pseudoinstruction will follow and, finally, its definition.
It allows to modify a pseudoinstruction within the desired architecture, being able to modify its name, as well as the fields it uses, the syntax that follows the pseudoinstruction and, finally, the definition of the pseudoinstruction.
0 commit comments