File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -267,20 +267,20 @@ In the asm directory there are some basic assembly examples.
267
267
268
268
I "compile" one file with the follwing command:
269
269
``` sh
270
- $ cd asm
271
- $ riscv32-unknown-elf-as EternalLoop.asm -o EternalLoop.o
272
- $ riscv32-unknown-elf-ld EternalLoop.o -o EternalLoop.elf
273
- $ riscv32-unknown-elf-objcopy -O ihex EternalLoop.elf EternalLoop.hex
274
- $ cd ..
275
- $ ./RISCV_SCTLM asm/EternalLoop.hex
270
+ cd asm
271
+ riscv32-unknown-elf-as EternalLoop.asm -o EternalLoop.o
272
+ riscv32-unknown-elf-ld EternalLoop.o -o EternalLoop.elf
273
+ riscv32-unknown-elf-objcopy -O ihex EternalLoop.elf EternalLoop.hex
274
+ cd ..
275
+ ./RISCV_SCTLM asm/EternalLoop.hex
276
276
```
277
277
This example needs that you hit Ctr+C to stop execution.
278
278
279
279
### C code
280
280
The C directory contains simple examples in C. Each directory contains
281
281
an example, to compile it just:
282
282
``` sh
283
- $ make
283
+ make
284
284
```
285
285
and then execute the .hex file like the example before.
286
286
You can’t perform that action at this time.
0 commit comments