{"id":21270376,"url":"https://github.com/amdzy/hackassembler","last_synced_at":"2025-03-15T11:46:25.500Z","repository":{"id":174963055,"uuid":"579574142","full_name":"amdzy/HackAssembler","owner":"amdzy","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-18T06:24:39.000Z","size":141,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T02:28:32.424Z","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/amdzy.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}},"created_at":"2022-12-18T06:14:40.000Z","updated_at":"2022-12-18T06:19:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"e9e2cb62-91cd-40b7-aa0d-07da2fffa6ec","html_url":"https://github.com/amdzy/HackAssembler","commit_stats":null,"previous_names":["soul-remix/hackassembler","amdzy/hackassembler"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amdzy%2FHackAssembler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amdzy%2FHackAssembler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amdzy%2FHackAssembler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amdzy%2FHackAssembler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amdzy","download_url":"https://codeload.github.com/amdzy/HackAssembler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243725560,"owners_count":20337667,"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-11-21T08:17:15.736Z","updated_at":"2025-03-15T11:46:25.482Z","avatar_url":"https://github.com/amdzy.png","language":"Assembly","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HackAssembler\nAn assembler for the hack language written in java     \nThe program takes as an input an assembly file and outputs a hack file     \n\n\u003cbr /\u003e![assembler](image/assembler.png)\n\n* **Symbols**\n    * *Label symbols* (In the program above *LOOP* and *END* are label symbols) are used to mark the memory location of the next instruction in the program. Label symbols are used for *control flow* in the program.\n    * *Variable symbols* (In the program above *i* and *sum* are variable symbols) are treated as *variable*. Variables are mapped to consecutive memory locations.\n    \n* **Symbols table**: Since Hack instructions can contain symbols, the symbols must be resolved into actual addresses.\n\n    | Symbol     | Memory location |\n    | :-------   | :----------:    |\n    | i          | 16              |\n    | sum        | 17              |\n    | LOOP       | 4               |\n    | END        | 18              |\n\n    The table above is the symbol table for the program above. Since in Hack system we allocate memory for variable from memory 16 so the memory location for variable *i* will be 16 and *sum* will be 17. To specify label *LOOP* and *END* we count the number of instructions in the program so that *LOOP* will be4 and *END* will be 18. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famdzy%2Fhackassembler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famdzy%2Fhackassembler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famdzy%2Fhackassembler/lists"}