{"id":21905191,"url":"https://github.com/godtamit/assembler","last_synced_at":"2026-05-19T03:41:02.784Z","repository":{"id":52824009,"uuid":"68465695","full_name":"GodTamIt/assembler","owner":"GodTamIt","description":"A modular general 2-pass assembler written in Python.","archived":false,"fork":false,"pushed_at":"2021-04-20T15:50:41.000Z","size":41,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-27T07:28:27.690Z","etag":null,"topics":["assembler","assembly","instruction-set-architecture","instructions","modular","parser"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"0bsd","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GodTamIt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-0BSD","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-17T17:00:28.000Z","updated_at":"2021-04-17T21:03:54.000Z","dependencies_parsed_at":"2022-08-22T21:11:33.740Z","dependency_job_id":null,"html_url":"https://github.com/GodTamIt/assembler","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/GodTamIt%2Fassembler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GodTamIt%2Fassembler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GodTamIt%2Fassembler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GodTamIt%2Fassembler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GodTamIt","download_url":"https://codeload.github.com/GodTamIt/assembler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244918710,"owners_count":20531686,"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":["assembler","assembly","instruction-set-architecture","instructions","modular","parser"],"created_at":"2024-11-28T16:31:27.757Z","updated_at":"2026-05-19T03:40:57.749Z","avatar_url":"https://github.com/GodTamIt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Assembler\nA general 2-pass assembler with implementations of LC-2200 and LC3-2200a.\n\n## Requirements\nThe assembler runs on any version of Python 2.6+.  An instruction set architecture definition file is required along with the assembler.  In this repository, several sample ISA definitions have been provided (see below).\n\n## Sample Definitions\n* [LC-2200 (32-bit)](lc2200.py)\n* [LC3-2200a (32-bit)](lc32200a.py)\n\n## Options\nThe assembler contains multiple options.\n\n`python assembler.py -h` prints:\n```\nusage: Assembles generic ISA-defined assembly code into hex or binary.\n       [-h] [-i ISA] [-v] [--hex] [-s SEPARATOR] [--sym] [--params PARAMS]\n       asmfile\n\npositional arguments:\n  asmfile               the .s file to be assembled\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -i ISA, --isa ISA     define the Python ISA module to load [default: isa]\n  -v, --verbose         enable verbose printing of assembler\n  --hex, --logisim      assemble code into hexadecimal (Logisim-compatible)\n  -s SEPARATOR, --separator SEPARATOR\n                        the separator to use between instructions (accepts \\s\n                        for space and standard escape characters) [default:\n                        \\n]\n  --sym, --symbols      output an additional file containing the assembled\n                        program's symbol table\n  --params PARAMS       custom parameters to pass to an architecture,\n                        formatted as \"key1=value1, key2=value2, key3=value3\"\n\n```\n\n## How to Use\nTypical usage:\n```\n./assembler.py \u003cassembly_file\u003e -i \u003cisa_definition\u003e\n```\n\nExample usage with the `lc2200.py` definition:\n```\n./assembler.py assembly.s -i lc2200\n```\n\nTo output assembled code in hexadecimal (compatible with *Logisim* images):\n```\n./assembler.py assembly.s -i lc2200 --logisim\n```\n\nTo separate entries by a space:\n```\n./assembler.py assembly.s -i lc2200 --separator \\s\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgodtamit%2Fassembler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgodtamit%2Fassembler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgodtamit%2Fassembler/lists"}