{"id":26017567,"url":"https://github.com/benoitlx/simple-assembler","last_synced_at":"2026-04-28T17:01:49.941Z","repository":{"id":274379103,"uuid":"922717898","full_name":"benoitlx/simple-assembler","owner":"benoitlx","description":"Simple assembler for my custom cpu","archived":false,"fork":false,"pushed_at":"2025-03-05T09:48:13.000Z","size":137,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-24T04:07:39.845Z","etag":null,"topics":["assembly","bitstream-generation","parser","tokenizer"],"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/benoitlx.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-01-26T22:58:55.000Z","updated_at":"2025-03-05T09:48:16.000Z","dependencies_parsed_at":"2025-01-27T00:17:26.471Z","dependency_job_id":"8ee17d90-769c-4810-9174-bebba45793f9","html_url":"https://github.com/benoitlx/simple-assembler","commit_stats":null,"previous_names":["benoitlx/simple-assembler"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/benoitlx/simple-assembler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benoitlx%2Fsimple-assembler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benoitlx%2Fsimple-assembler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benoitlx%2Fsimple-assembler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benoitlx%2Fsimple-assembler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benoitlx","download_url":"https://codeload.github.com/benoitlx/simple-assembler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benoitlx%2Fsimple-assembler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32390067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T14:34:11.604Z","status":"ssl_error","status_checked_at":"2026-04-28T14:32:37.009Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","bitstream-generation","parser","tokenizer"],"created_at":"2025-03-06T05:18:08.832Z","updated_at":"2026-04-28T17:01:49.925Z","avatar_url":"https://github.com/benoitlx.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simple-assembler\n\n![lint-workflow](https://github.com/benoitlx/simple-assembler/actions/workflows/ci.yml/badge.svg)\n\nSimple assembler for my custom cpu.\n\nYou should not be interested in this project unless you're curious about making your own assembler or you want to test out my [cpu](https://benoitlx.github.io/simple-cpu-wiki/Assembler/Assembler) (wip).\n\n## Installation\n\nIt's only possible to install it from source for now.\n\nClone this repository and `cd` into it. Then run `cargo build --release` to build the binary.\nYou can place the binary `simple-assembler` located in `target/release` in your `PATH` in order to access it from everywhere.\n\n## Usage\n\n```\nUsage: simple-assembler [OPTIONS] \u003cFILE_PATH\u003e\n\nArguments:\n  \u003cFILE_PATH\u003e  assembly file path\n\nOptions:\n  -c, --color                 whether to colorize the bit stream output\n  -d, --debug                 whether to print debug messages\n  -s, --sep \u003cSEP\u003e             separator between each words in the bit stream [default: ]\n      --w-off                 whether to turn off warnings\n  -W, --Warn                  whether to output the bit stream if warnings are encountered\n  -o, --output \u003cOUTPUT_PATH\u003e  save output in designated file\n  -h, --help                  Print help\n```\n\n## Example on a simple program \n\n```asm\nDEFINE foo 0x7fff\nDEFINE unused_var 42 ; warning here\n\nmain:\nA = foo\nD = *A\nA = 5\nD = D \u0026 A \n\nA = A ~ A ; error here\n\nA = main\nJMP\n```\n\nRunning `simple-assembler prog.asm -c` on the code above gives us this output :\n\n![Errors](/examples/output_with_error.png)\n\nCommenting the error and the warning outputs the following :\n\n![out](/examples/output.png)\n\n\n\n## TODO\n\n- [ ] Handle more error with miette (tokenization errors, ...)\n- [ ] Integration test for parser\n- [ ] Benchmark\n\n## Acknowledgments\n\nHere are the amazing crates I used to make this small project :\n- [logos](https://github.com/maciejhirsz/logos) for tokenization\n- [miette](https://github.com/zkat/miette) for error report\n- [clap](https://github.com/clap-rs/clap) for parsing cli arguments\n- [colored](https://github.com/colored-rs/colored) to colorize the output of the program\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenoitlx%2Fsimple-assembler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenoitlx%2Fsimple-assembler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenoitlx%2Fsimple-assembler/lists"}