{"id":22303630,"url":"https://github.com/thisisnic/pyhackassembler","last_synced_at":"2025-03-26T00:33:57.171Z","repository":{"id":226801700,"uuid":"769679248","full_name":"thisisnic/pyhackassembler","owner":"thisisnic","description":"A project as part of Nand2Tetris (part 1) to turn Hack assembly code into binary machine code","archived":false,"fork":false,"pushed_at":"2024-03-09T20:20:50.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T21:20:28.413Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Assembly","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/thisisnic.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}},"created_at":"2024-03-09T18:46:52.000Z","updated_at":"2024-03-09T18:51:47.000Z","dependencies_parsed_at":"2024-12-03T18:44:39.646Z","dependency_job_id":"100f2b74-de32-4f2d-9fef-9ede4c27a1a5","html_url":"https://github.com/thisisnic/pyhackassembler","commit_stats":null,"previous_names":["thisisnic/pyhackassembler"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisisnic%2Fpyhackassembler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisisnic%2Fpyhackassembler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisisnic%2Fpyhackassembler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisisnic%2Fpyhackassembler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thisisnic","download_url":"https://codeload.github.com/thisisnic/pyhackassembler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245566127,"owners_count":20636391,"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":[],"created_at":"2024-12-03T18:44:24.154Z","updated_at":"2025-03-26T00:33:57.149Z","avatar_url":"https://github.com/thisisnic.png","language":"Assembly","readme":"# pyhackassembler\n\nThis repo contains my implementation of the final project from Nand2Tetris (part 1), which converts Hack assembly code into binary machine code.\n\nTakes a Hack assembly (`.asm`) file containing e.g.\n\n```\n// This file is part of www.nand2tetris.org\n// and the book \"The Elements of Computing Systems\"\n// by Nisan and Schocken, MIT Press.\n// File name: projects/06/add/Add.asm\n\n// Computes R0 = 2 + 3  (R0 refers to RAM[0])\n\n@2\nD=A\n@3\nD=D+A\n@0\nM=D\n```\n\nand produces the equivalent binary code as a `.hack` file:\n\n```\n0000000000000010\n1110110000010000\n0000000000000011\n1110000010010000\n0000000000000000\n1110001100001000\n\n```\n\n## Example usage\n\nTo run the code:\n\n```py\npython3 ./assembler/assembler.py ./add/Add.asm\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisisnic%2Fpyhackassembler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthisisnic%2Fpyhackassembler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisisnic%2Fpyhackassembler/lists"}