{"id":15060031,"url":"https://github.com/dxrcy/lasim","last_synced_at":"2025-04-10T05:43:54.083Z","repository":{"id":255656400,"uuid":"852772846","full_name":"dxrcy/lasim","owner":"dxrcy","description":"A simple LC-3 assembler and simulator","archived":false,"fork":false,"pushed_at":"2024-10-18T04:18:29.000Z","size":265,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T05:56:43.465Z","etag":null,"topics":["assembly","compiler","lc3"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dxrcy.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-05T11:59:23.000Z","updated_at":"2025-02-24T09:44:52.000Z","dependencies_parsed_at":"2024-09-17T14:48:58.739Z","dependency_job_id":"cc6ed601-84f4-4a83-891c-204833106e38","html_url":"https://github.com/dxrcy/lasim","commit_stats":null,"previous_names":["dxrcy/lc3sim","dxrcy/lc3","dxrcy/lasim"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxrcy%2Flasim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxrcy%2Flasim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxrcy%2Flasim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxrcy%2Flasim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dxrcy","download_url":"https://codeload.github.com/dxrcy/lasim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248166881,"owners_count":21058479,"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":["assembly","compiler","lc3"],"created_at":"2024-09-24T22:51:28.609Z","updated_at":"2025-04-10T05:43:54.051Z","avatar_url":"https://github.com/dxrcy.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **LASIM** : LC-3 Assembler \u0026 Simulator\n\nA simple [LC-3](https://en.wikipedia.org/wiki/Little_Computer_3) assembler and\nsimulator in C++.\n\n# Usage\n\n\u003e Only *nix systems are supported currently.\n\n- `g++` to compile\n\n- Development dependencies (for `make test` or `make watch`):\n    - [`lc3as` from `lc3tools`](https://github.com/chiragsakhuja/lc3tools)\n    - [`delta`]\n    - [`reflex`](https://github.com/cespare/reflex) *(optional)*\n\n```sh\n# Download\ngit clone https://github.com/dxrcy/lasim lasim\ncd lasim\n\n# Compile and install\nmake\nsudo make install\n\n# Assemble and execute a specific file\nlasim examples/checkerboard.asm\n# Or assemble and execute in separate steps\nlasim -a examples/checkerboard.asm -o examples/checkerboard.obj\nlasim -x examples/checkerboard.obj\n```\n\n# Examples\n\n- `char_count`: Counts the amount of times each letter was inputted\n- `checkerboard`: Prints an ASCII checkerboard\n- `count_bits`: Counts the '1' bits of an inputted number from 0-9\n- `encrypt`: Encrypt/decrypt a message using a Caesar cipher\n- `fibonacci`: Caclulates the n-th fibonacci number (no output)\n- `hello_world`: Take a wild guess...\n- `store_number`: Reads a 5-digit number and stores it in memory (no output)\n- `string_array`: Prints an array of static-memory strings\n\nSome of the examples are taken from\n[here](https://github.com/Nguyen-Nhat-Tuan-Minh/LC_3-Assembly-Program) and\n[here](https://github.com/dideler/LC-3-Programs).\n\n# C++ Subset\n\nThis project only uses the following C++ features (to keep it simple):\n\n- References\n- Booleans\n- `nullptr`\n- `static_cast`/`reinterpret_cast`\n- `enum class`\n- `std::vector`\n\n# Features to Implement\n\n- [ ] Add debugger mode\n- [ ] Make error messages nicer\n- [ ] Assemble and run without intermediate write\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdxrcy%2Flasim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdxrcy%2Flasim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdxrcy%2Flasim/lists"}