{"id":18191112,"url":"https://github.com/wdamron/arm","last_synced_at":"2025-04-02T06:31:52.609Z","repository":{"id":56854654,"uuid":"524541585","full_name":"wdamron/arm","owner":"wdamron","description":"ARMv8 (AArch64) instruction assembler implemented in Go","archived":false,"fork":false,"pushed_at":"2022-08-21T18:00:01.000Z","size":304,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T14:51:36.586Z","etag":null,"topics":["aarch64","arm","armv8","assembler","go","instruction-encoding","jit","neon"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wdamron.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}},"created_at":"2022-08-14T00:53:40.000Z","updated_at":"2024-07-09T09:57:20.000Z","dependencies_parsed_at":"2022-09-21T12:50:34.947Z","dependency_job_id":null,"html_url":"https://github.com/wdamron/arm","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wdamron%2Farm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wdamron%2Farm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wdamron%2Farm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wdamron%2Farm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wdamron","download_url":"https://codeload.github.com/wdamron/arm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246768266,"owners_count":20830634,"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":["aarch64","arm","armv8","assembler","go","instruction-encoding","jit","neon"],"created_at":"2024-11-03T05:03:01.164Z","updated_at":"2025-04-02T06:31:48.944Z","avatar_url":"https://github.com/wdamron.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# package arm\n\n```go\nimport \"github.com/wdamron/arm\"\n```\n\nPackage `arm` implements an ARMv8 (AArch64) instruction assembler in Go, for runtime or ahead-of-time generation of executable code. SVE/SME instructions are not yet supported.\n\nThis library is mostly adapted from the [CensoredUsername/dynasm-rs](https://github.com/CensoredUsername/dynasm-rs) (Rust) project, and is not heavily tested.\n\n## Brief Overview\n\nThe `Assembler` type encodes executable instructions to a code buffer.\n\nSome instructions support label offset arguments, which may be resolved by the `Assembler`\nand encoded after all label addresses are assigned.\n\nThe following are argument types:\n- `Reg`: integer, SP, SIMD scalar, or SIMD vector register (with optional element index)\n- `RegList`: list of sequential registers\n- `Ref`: memory reference with register base, optionally followed by X register or immediate for post-indexing\n- `RefOffset`: memory reference with register base and immediate offset\n- `RefPreIndexed`: pre-indexed memory reference with register base and immediate offset\n- `RefIndexed`: memory index with register base, register index, and optional index modifier\n- `Imm`: 32-bit immediate integer\n- `Float`: 32-bit immediate float\n- `Wide`: 64-bit immediate integer\n- `Mod`: modifier with optional immediate shift/rotate\n- `Label`: label reference with optional offset from label address\n- `Symbol`: constant identifier\n\n## Additional References\n\n- [Package Documentation (pkg.go.dev)](https://pkg.go.dev/github.com/wdamron/arm)\n- [Full Instruction Listing (INSTRUCTIONS.md)](./INSTRUCTIONS.md)\n- [Basic Test Examples (asm_test.go)](./asm_test.go)\n- [AArch64 Instruction Set Architecture (developer.arm.com)](https://developer.arm.com/documentation/102374/latest/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwdamron%2Farm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwdamron%2Farm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwdamron%2Farm/lists"}