{"id":27722624,"url":"https://github.com/karanagi/riscv-playground","last_synced_at":"2025-08-26T23:33:40.061Z","repository":{"id":288508311,"uuid":"968237206","full_name":"karanagi/riscv-playground","owner":"karanagi","description":"Programs written in RISC-V Assembly","archived":false,"fork":false,"pushed_at":"2025-08-03T15:09:33.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-03T17:23:46.448Z","etag":null,"topics":["assembly","risc-v","riscv"],"latest_commit_sha":null,"homepage":"","language":"Assembly","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/karanagi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-17T18:26:55.000Z","updated_at":"2025-08-03T15:09:38.000Z","dependencies_parsed_at":"2025-04-18T13:27:18.911Z","dependency_job_id":"bc379726-7379-4d31-85d3-832a7ddbcfde","html_url":"https://github.com/karanagi/riscv-playground","commit_stats":null,"previous_names":["karanagi/riscv-playground"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/karanagi/riscv-playground","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karanagi%2Friscv-playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karanagi%2Friscv-playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karanagi%2Friscv-playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karanagi%2Friscv-playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karanagi","download_url":"https://codeload.github.com/karanagi/riscv-playground/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karanagi%2Friscv-playground/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272267230,"owners_count":24903642,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-26T02:00:07.904Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["assembly","risc-v","riscv"],"created_at":"2025-04-27T12:32:10.604Z","updated_at":"2025-08-26T23:33:40.021Z","avatar_url":"https://github.com/karanagi.png","language":"Assembly","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RISC-V Assembly Playground\n\nSome programs written in RISC-V 64 assembly.\n\nThese programs can be built using the RISC-V gnu tool chain, and run using qemu's riscv user space emulator.\n\nExample: Running `hello/hello.s` on Arch linux:\n\n```console\n$ riscv64-linux-gnu-as hello.s -o hello.o\n$ riscv64-linux-gnu-ld hello.o -o hello\n$ qemu-riscv64 hello\nHello RISC-V!\n```\n\n## Program Listing\n- `hello`: hello world.\n- `args/count_args.s`: count the number of command line arguments (which is kind of useless since one could simply look at `argc`).\n- `args/print_args.s`: prints all of the command line arguments.\n- `cp/cp.s`: a simple and crude implementation of `cp`.\n- `print_load_addr/print_load_addr.s`: prints the load address.\n\n## Links and Resources\n- \u003chttps://asm-docs.microagi.org/risc-v/riscv-asm.html\u003e\n- \u003chttps://jborza.com/post/2021-05-11-riscv-linux-syscalls/\u003e\n- \u003chttps://github.com/scotws/RISC-V-tests/blob/master/docs/riscv_howto_syscalls.md\u003e\n- \u003chttps://projectf.io/posts/riscv-cheat-sheet/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaranagi%2Friscv-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaranagi%2Friscv-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaranagi%2Friscv-playground/lists"}