{"id":20858978,"url":"https://github.com/rosendo-martinez/virtualcomputer","last_synced_at":"2025-03-12T14:14:46.858Z","repository":{"id":110679549,"uuid":"589688247","full_name":"Rosendo-Martinez/VirtualComputer","owner":"Rosendo-Martinez","description":"A virtual computer that can run machine code. [C++]","archived":false,"fork":false,"pushed_at":"2025-02-19T03:49:34.000Z","size":679,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-19T04:28:18.638Z","etag":null,"topics":["cpp"],"latest_commit_sha":null,"homepage":"","language":"C++","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/Rosendo-Martinez.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":"2023-01-16T17:47:30.000Z","updated_at":"2025-02-19T03:49:38.000Z","dependencies_parsed_at":"2025-01-19T07:34:22.231Z","dependency_job_id":null,"html_url":"https://github.com/Rosendo-Martinez/VirtualComputer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rosendo-Martinez%2FVirtualComputer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rosendo-Martinez%2FVirtualComputer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rosendo-Martinez%2FVirtualComputer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rosendo-Martinez%2FVirtualComputer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rosendo-Martinez","download_url":"https://codeload.github.com/Rosendo-Martinez/VirtualComputer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243230100,"owners_count":20257644,"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":["cpp"],"created_at":"2024-11-18T04:48:17.589Z","updated_at":"2025-03-12T14:14:46.851Z","avatar_url":"https://github.com/Rosendo-Martinez.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VirtualComputer\n \nThis is a program that simulates a CPU and main memory. As input, it receives a program that is written in machine code (only hexadecimal). It will then run that program. After each instruction execution, the registers of the CPU will be printed to the console.\n \n## Example Program: Adding Two Numbers\n \nThe following example program adds two numbers. It has three instructions.\n\n**The Program Represented In:**\n\nAssembly code:\u003cbr\u003e\n```\nLOAD 4;     # loads 4 to register\nADD  3;     # adds 3 to value in register (4)\nSTOP  ;     # program stop instruction\n```\n\nMachine code (*hexadecimal*):\u003cbr\u003e\n```\nC0 0004\n70 0003\n00 0000\n```\n\nMachine code (*binary*):\u003cbr\u003e\n```\n11000000 0000000000000100\n01110000 0000000000000011\n00000000 0000000000000000\n```\n\n## Executing/Running The Example Program\n\n![SC](screenshots/VCSC2.png)\n\n![SC](screenshots/VCSC1.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frosendo-martinez%2Fvirtualcomputer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frosendo-martinez%2Fvirtualcomputer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frosendo-martinez%2Fvirtualcomputer/lists"}