{"id":20129970,"url":"https://github.com/aliiimaher/assembler-x86","last_synced_at":"2025-09-21T05:31:53.870Z","repository":{"id":185677773,"uuid":"673927125","full_name":"aliiimaher/Assembler-X86","owner":"aliiimaher","description":"This is an assembler written in python.","archived":false,"fork":false,"pushed_at":"2023-08-02T19:32:24.000Z","size":3689,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T21:35:42.992Z","etag":null,"topics":["assembler","assembly","assembly-x86","opcodes"],"latest_commit_sha":null,"homepage":"","language":"Python","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/aliiimaher.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}},"created_at":"2023-08-02T18:32:10.000Z","updated_at":"2024-11-13T06:10:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"232ca5b5-5388-4534-8f43-784d2b3982c9","html_url":"https://github.com/aliiimaher/Assembler-X86","commit_stats":null,"previous_names":["aliiimaher/assembler-x86"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aliiimaher/Assembler-X86","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliiimaher%2FAssembler-X86","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliiimaher%2FAssembler-X86/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliiimaher%2FAssembler-X86/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliiimaher%2FAssembler-X86/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aliiimaher","download_url":"https://codeload.github.com/aliiimaher/Assembler-X86/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliiimaher%2FAssembler-X86/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276195627,"owners_count":25601152,"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","status":"online","status_checked_at":"2025-09-21T02:00:07.055Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["assembler","assembly","assembly-x86","opcodes"],"created_at":"2024-11-13T20:36:48.093Z","updated_at":"2025-09-21T05:31:53.245Z","avatar_url":"https://github.com/aliiimaher.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Design An Assembler Assembler-X86\nThis is an assembler written in Python.\n\n## Author: Seyed Ali Maher\n## Student NO.: 9932113\n## Creation Date: 1400-10-06\n## Revision: 03\n\n## Program Description\n\nDesign an assembler that converts assembly code to machine code. This assembler project supports instructions like ADD, AND, SUB, OR, and JMP.\n\n## Improvements in Part 3\n\nIn this part, a short JMP instruction is added. Additionally, support is extended to handle the last parts (MOD = 11) and (MOD = 00).\n\n## Warnings\n\n1. We don't support 16 bits in MOD = 00!\n2. For ah, ch, esp, and ebp, we consider them the same as other registers (No SIB).\n3. Only one jump is allowed.\n\n## Sources\n\n- [Assembly Instructions Reference](http://www.c-jump.com/CIS77/CPU/x86/lecture.html#X77_0210_encoding_add_immediate)\n- [Online Assembler and Disassembler](http://shell-storm.org/online/Online-Assembler-and-Disassembler/)\n\n## Special Thanks\n\nA great thanks to Mr. Mirhosseini for his awesome guidance during the development of this assembler.\n\n## How to Use\n\n1. Ensure you have Python installed on your machine.\n2. Clone this repository to your local system.\n3. Create an input text file named `InputsAsmCodes.txt` and add your assembly code to it.\n4. Run the assembler using the command: `python assembler.py`.\n5. The assembler will read the input file, process the instructions, and generate the corresponding machine code.\n6. The output will be displayed in the console.\n\n## Example Assembly Code\n\n```assembly\n; Example Assembly Code\nADD AX, BX\nSUB CX, DX\nAND AX, 0x0F\nOR BH, AL\nJMP LABEL\n\nLABEL:\n    ; Your code here\n```\n\n![Assembler Image](Assembly%20Opcode%20Table.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faliiimaher%2Fassembler-x86","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faliiimaher%2Fassembler-x86","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faliiimaher%2Fassembler-x86/lists"}