{"id":23185993,"url":"https://github.com/kkinos/ktc32-asm","last_synced_at":"2025-08-18T16:32:23.658Z","repository":{"id":151979522,"uuid":"559920394","full_name":"kkinos/ktc32-asm","owner":"kkinos","description":"KTC32 assembler written in Rust.","archived":false,"fork":false,"pushed_at":"2023-03-05T14:01:24.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-02-18T00:23:30.531Z","etag":null,"topics":["assembler","assembly","cpu","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/kkinos.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}},"created_at":"2022-10-31T11:30:52.000Z","updated_at":"2024-02-18T00:23:32.549Z","dependencies_parsed_at":null,"dependency_job_id":"4fb8589b-3ea8-4936-9552-dcecd2f21cab","html_url":"https://github.com/kkinos/ktc32-asm","commit_stats":null,"previous_names":["kkinos/ktc32-asm"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkinos%2Fktc32-asm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkinos%2Fktc32-asm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkinos%2Fktc32-asm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkinos%2Fktc32-asm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kkinos","download_url":"https://codeload.github.com/kkinos/ktc32-asm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230252718,"owners_count":18197283,"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","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":["assembler","assembly","cpu","rust"],"created_at":"2024-12-18T10:14:03.296Z","updated_at":"2024-12-18T10:14:03.926Z","avatar_url":"https://github.com/kkinos.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ktc32-asm\n\n[![Rust](https://github.com/kinpoko/ktc32-asm/actions/workflows/rust.yml/badge.svg)](https://github.com/kinpoko/ktc32-asm/actions/workflows/rust.yml)\n![License](https://img.shields.io/github/license/kinpoko/ktc32-asm?color=blue)\n\nktc32-asm is an assembler written in Rust for [KTC32](https://github.com/kinpoko/ktc32), a hobby 32-bit CPU implemented in SystemVerilog.\n\n## Build\n\n```bash\ngit clone https://github.com/kinpoko/ktc32-asm.git\ncargo build --release\n```\n\n## Usage\n\n```bash\nktc32-asm -h\nKTC32 assembler\n\nUsage: ktc32-asm [OPTIONS] \u003cFILE_PATH\u003e\n\nArguments:\n  \u003cFILE_PATH\u003e  .asm file path\n\nOptions:\n  -o \u003cOUTPUT_FILE\u003e      output file name [default: a.mem]\n  -b, --baremetal       assemble for bare metal\n  -h, --help            Print help information\n  -V, --version         Print version information\n```\n\n## Features\n\n- Comments: Single-line comments can be written using `//` syntax.\n\n```asm\n// This is a comment\naddi r1, r0, 1\n```\n\n- Label: Labels can be used to mark a location in the code, and the corresponding address can be referenced using the label name.\n\n```asm\nstart:\n\tjal r0, label\n\nlabel:\n\taddi r1, r0, 1\n```\n\n- Constants: Constants can be defined using a label and referenced in the code by using the label name.\n\n```asm\nstart:\n\taddi r1, r0, msg\n\tlw r2, r1, 0\n\nmsg:\n\t0x6c6c6548\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkinos%2Fktc32-asm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkkinos%2Fktc32-asm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkinos%2Fktc32-asm/lists"}