{"id":20640732,"url":"https://github.com/sampathbalivada/assembler-for-hack-computer","last_synced_at":"2026-04-25T03:46:02.538Z","repository":{"id":106016940,"uuid":"424553225","full_name":"sampathbalivada/assembler-for-hack-computer","owner":"sampathbalivada","description":"Contains the compiled binaries for Hack Assembly Language Assembler.","archived":false,"fork":false,"pushed_at":"2021-11-06T04:31:08.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-25T14:57:28.977Z","etag":null,"topics":["assembly","nand2tetris","python3"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":false,"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/sampathbalivada.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2021-11-04T10:23:23.000Z","updated_at":"2023-03-04T08:59:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"217c022d-0b80-4097-9bcd-74dda60faa1e","html_url":"https://github.com/sampathbalivada/assembler-for-hack-computer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sampathbalivada/assembler-for-hack-computer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sampathbalivada%2Fassembler-for-hack-computer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sampathbalivada%2Fassembler-for-hack-computer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sampathbalivada%2Fassembler-for-hack-computer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sampathbalivada%2Fassembler-for-hack-computer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sampathbalivada","download_url":"https://codeload.github.com/sampathbalivada/assembler-for-hack-computer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sampathbalivada%2Fassembler-for-hack-computer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32249492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T03:17:44.950Z","status":"ssl_error","status_checked_at":"2026-04-25T03:16:45.208Z","response_time":59,"last_error":"SSL_read: 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","nand2tetris","python3"],"created_at":"2024-11-16T15:30:56.724Z","updated_at":"2026-04-25T03:46:02.094Z","avatar_url":"https://github.com/sampathbalivada.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Assembler for Hack Computer\r\n\r\nAn assembler that compiles Hack Computers' Assembly (.asm) file to Hack Computer Machine Code. This project is done as a part of the Nand2Tetris course on Coursera.\r\n\r\nThe Hack computer is a virtual computer built as a part of the course to build an understanding about the inner workings of a modern computer.\r\n\r\nFor more information please visit [nand2tetris.org](https://nand2tetris.org).\r\n\r\n\u003e Note: Please be advised that the file in this repository is a compiled assembler and does not contain the source code.\r\n\r\n\r\n### Running the assembler\r\n\r\nLinux/MacOS:\r\n\r\n```bash\r\n# change directory to the assembler.pyc location\r\n\r\nchmod 500 assembler.pyc \u0026\u0026 python3 assembler.pyc\r\n```\r\n\r\nWindows (Powershell):\r\n\r\n```ps\r\n# change directory to the assembler.pyc location\r\n\r\n.\\assembler.pyc\r\n```\r\nOR\r\n```ps\r\n# change directory to the assembler.pyc location\r\n\r\npython.exe .\\assembler.pyc\r\n```\r\n\r\n### Usage\r\n\r\nThe assembly file path can be supplied in the command line arguements \r\n\r\n```bash\r\npython3 assembler.pyc [path/to/file.asm]\r\n```\r\n\r\n(OR)\r\n\r\nthe program will ask for a file location if the argument is not supplied\r\n```bash\r\npython3 assembler.pyc\r\n# Output:\r\n# Enter file location:\r\n```\r\n\r\nThe machine code for the given assembly code is written to `path/to/file.asm.output.hack` after the execution.\r\n\r\n### Areas of improvement\r\n\r\n- Implement a better parser. Preferably using Abstract Syntax Trees.\r\n- Implement better anomaly detection and handling.  \r\n- Add verbose syntax error messages.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsampathbalivada%2Fassembler-for-hack-computer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsampathbalivada%2Fassembler-for-hack-computer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsampathbalivada%2Fassembler-for-hack-computer/lists"}