{"id":19551357,"url":"https://github.com/kntt32/asmacro","last_synced_at":"2026-02-27T01:01:46.919Z","repository":{"id":261945100,"uuid":"874768174","full_name":"kntt32/asmacro","owner":"kntt32","description":"assembler with preprocessor","archived":false,"fork":false,"pushed_at":"2025-05-08T11:59:24.000Z","size":6823,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-08T12:41:58.598Z","etag":null,"topics":["assembly","compiler","preprocessor","x64"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kntt32.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-10-18T12:31:30.000Z","updated_at":"2025-05-08T11:59:27.000Z","dependencies_parsed_at":"2024-11-09T13:20:38.739Z","dependency_job_id":"e2fba261-b1cc-4c87-a587-0dc8b3f3413c","html_url":"https://github.com/kntt32/asmacro","commit_stats":null,"previous_names":["kntt32/asmacro"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kntt32/asmacro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kntt32%2Fasmacro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kntt32%2Fasmacro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kntt32%2Fasmacro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kntt32%2Fasmacro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kntt32","download_url":"https://codeload.github.com/kntt32/asmacro/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kntt32%2Fasmacro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29879899,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T23:51:21.483Z","status":"ssl_error","status_checked_at":"2026-02-26T23:50:46.793Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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","compiler","preprocessor","x64"],"created_at":"2024-11-11T04:13:38.664Z","updated_at":"2026-02-27T01:01:46.914Z","avatar_url":"https://github.com/kntt32.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# asmacro\n# 移行済みhttps://github.com/kntt32/as-macro\n## とりあえずの目標\n↓このようなコードを、\n```\nfn main() : (edx, esi, eax, fibo, aaa, stdout) -\u003e () {\n    let mut a: u32@edx = 1;\n    let mut b: u32@esi = 1;\n  \n    loop 100 {\n        let c: u32@eax = fibo(a@edi, b);\n        a = b;\n        b = c;\n        stdout(aaa(c@edi));\n    }\n}\n\nfn fibo(a: u32@rdi, b: u32@esi) : () -\u003e u32@eax {\n    a@rax + b\n}\n```\n↓このようなアセンブリに変換し、\n```\nmain:\n    mov rdi 1\n    mov rsi 1\n    mov rcx 100\nmain_loop_begin:\n    call fibo\n    mov edx eax\n    mov esi eax\n    mov edi eax\n    call aaa\n    call stdout\n    loop main_loop_begin\n    ret\n    \nfibo:\n    mov edi eax\n    add eax esi\n    ret\n```\nさらにELF形式に自力で変換することだ\n\n## 参考文献\n- AMD64仕様書  \nhttps://www.amd.com/content/dam/amd/en/documents/processor-tech-docs/programmer-references/24594.pdf\n- Oracleのマニュアル  \nhttps://docs.oracle.com/cd/E19683-01/817-4912/6mkdg541g/index.html\n- 最小限のELF  \nhttps://keens.github.io/blog/2020/04/12/saishougennoelf/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkntt32%2Fasmacro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkntt32%2Fasmacro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkntt32%2Fasmacro/lists"}