{"id":13838403,"url":"https://github.com/tenderlove/asmrepl","last_synced_at":"2025-05-13T21:11:24.549Z","repository":{"id":41123042,"uuid":"431230739","full_name":"tenderlove/asmrepl","owner":"tenderlove","description":"A REPL for x86-64 assembly language","archived":false,"fork":false,"pushed_at":"2025-02-09T20:33:51.000Z","size":58,"stargazers_count":865,"open_issues_count":2,"forks_count":33,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-04-28T17:03:06.459Z","etag":null,"topics":["assembly","ruby","x86-64"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tenderlove.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2021-11-23T19:39:12.000Z","updated_at":"2025-04-11T09:05:25.000Z","dependencies_parsed_at":"2025-02-28T12:00:33.362Z","dependency_job_id":"6f40e080-4323-4102-8952-686b9e41447f","html_url":"https://github.com/tenderlove/asmrepl","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenderlove%2Fasmrepl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenderlove%2Fasmrepl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenderlove%2Fasmrepl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenderlove%2Fasmrepl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tenderlove","download_url":"https://codeload.github.com/tenderlove/asmrepl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254029003,"owners_count":22002283,"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":["assembly","ruby","x86-64"],"created_at":"2024-08-04T15:01:55.493Z","updated_at":"2025-05-13T21:11:19.048Z","avatar_url":"https://github.com/tenderlove.png","language":"Ruby","readme":"# ASMREPL\n\nThis is a REPL for assembly language.\n\n## Usage\n\nInstall the gem:\n\n```\n$ gem install asmrepl\n```\n\nThen start the repl like this:\n\n```\n$ asmrepl\n```\n\nIf you're on macOS, you'll need to start the repl with `sudo`.\n\nWhen the REPL starts, it will display all register values and flags:\n\n```\n================== CPU STATE ===================\nrax  000000000000000000  r8   0x00007f89d0f04640\nrbx  000000000000000000  r9   0x0000000000000004\nrcx  0x00007f89d0f04a50  r10  000000000000000000\nrdx  0x..fc611d3f0aa2900d4  r11  0x00000001033a4000\nrdi  0x00007ff7bd126148  r12  000000000000000000\nrsi  000000000000000000  r13  0x00007ff7bd125dc0\nrbp  0x00007ff7bd125c40  r14  000000000000000000\nrsp  0x00007ff7bd125c38  r15  000000000000000000\n\nrip     0x00000001033a4001\nrflags  0x0000000000000246\ncs      0x000000000000002b\nfs      000000000000000000\ngs      000000000000000000\n\nFLAGS: [\"PF\", \"ZF\", \"IF\"]\n\n(rip 0x00000001033a4001)\u003e\n```\n\nThen you can issue commands and inspect register values.  Let's write to the\n`rax` register and inspect its value:\n\n```\n(rip 0x00000001033a4001)\u003e mov rax, 5\n=============== REGISTER CHANGES ===============\nrax     000000000000000000 =\u003e 0x0000000000000005\n\n(rip 0x00000001033a4009)\u003e rax\n0x0000000000000005\n(rip 0x00000001033a4009)\u003e\n```\n\nNow let's write to the `rbx` register and add the two values:\n\n```\n(rip 0x00000001033a4009)\u003e mov rbx, 3\n=============== REGISTER CHANGES ===============\nrbx     000000000000000000 =\u003e 0x0000000000000003\n\n(rip 0x00000001033a4011)\u003e add rax, rbx\n=============== REGISTER CHANGES ===============\nrax     0x0000000000000005 =\u003e 0x0000000000000008\nrflags  0x0000000000000246 =\u003e 0x0000000000000202\n\nFLAGS: [\"IF\"]\n\n(rip 0x00000001033a4015)\u003e rax\n0x0000000000000008\n(rip 0x00000001033a4015)\u003e rbx\n0x0000000000000003\n(rip 0x00000001033a4015)\u003e\n```\n\nFinally, lets check all values in the CPU:\n\n```\n(rip 0x00000001033a4015)\u003e cpu\n================== CPU STATE ===================\nrax  0x0000000000000008  r8   0x00007f89d0f04640\nrbx  0x0000000000000003  r9   0x0000000000000004\nrcx  0x00007f89d0f04a50  r10  000000000000000000\nrdx  0x..fc611d3f0aa2900d4  r11  0x00000001033a4000\nrdi  0x00007ff7bd126148  r12  000000000000000000\nrsi  000000000000000000  r13  0x00007ff7bd125dc0\nrbp  0x00007ff7bd125c40  r14  000000000000000000\nrsp  0x00007ff7bd125c38  r15  000000000000000000\n\nrip     0x00000001033a4015\nrflags  0x0000000000000202\ncs      0x000000000000002b\nfs      000000000000000000\ngs      000000000000000000\n\nFLAGS: [\"IF\"]\n\n(rip 0x00000001033a4015)\u003e\n```\n","funding_links":[],"categories":["Ruby"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftenderlove%2Fasmrepl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftenderlove%2Fasmrepl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftenderlove%2Fasmrepl/lists"}