https://github.com/karanagi/riscv-playground
Programs written in RISC-V Assembly
https://github.com/karanagi/riscv-playground
assembly risc-v riscv
Last synced: 10 months ago
JSON representation
Programs written in RISC-V Assembly
- Host: GitHub
- URL: https://github.com/karanagi/riscv-playground
- Owner: karanagi
- License: mit
- Created: 2025-04-17T18:26:55.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-03T15:09:33.000Z (11 months ago)
- Last Synced: 2025-08-03T17:23:46.448Z (11 months ago)
- Topics: assembly, risc-v, riscv
- Language: Assembly
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RISC-V Assembly Playground
Some programs written in RISC-V 64 assembly.
These programs can be built using the RISC-V gnu tool chain, and run using qemu's riscv user space emulator.
Example: Running `hello/hello.s` on Arch linux:
```console
$ riscv64-linux-gnu-as hello.s -o hello.o
$ riscv64-linux-gnu-ld hello.o -o hello
$ qemu-riscv64 hello
Hello RISC-V!
```
## Program Listing
- `hello`: hello world.
- `args/count_args.s`: count the number of command line arguments (which is kind of useless since one could simply look at `argc`).
- `args/print_args.s`: prints all of the command line arguments.
- `cp/cp.s`: a simple and crude implementation of `cp`.
- `print_load_addr/print_load_addr.s`: prints the load address.
## Links and Resources
-
-
-
-