{"id":50967676,"url":"https://github.com/dymoo/c-vm","last_synced_at":"2026-06-18T22:02:28.068Z","repository":{"id":214219691,"uuid":"236191643","full_name":"dymoo/c-vm","owner":"dymoo","description":"A virtual machine written in C using a custom instruction set.","archived":false,"fork":false,"pushed_at":"2020-01-25T15:55:47.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-12-26T18:22:17.159Z","etag":null,"topics":["c","virtual-machine","vm"],"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/dymoo.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}},"created_at":"2020-01-25T15:55:25.000Z","updated_at":"2023-12-26T18:22:18.646Z","dependencies_parsed_at":"2023-12-26T18:36:41.433Z","dependency_job_id":null,"html_url":"https://github.com/dymoo/c-vm","commit_stats":null,"previous_names":["dymoo/c-vm"],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/dymoo/c-vm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dymoo%2Fc-vm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dymoo%2Fc-vm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dymoo%2Fc-vm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dymoo%2Fc-vm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dymoo","download_url":"https://codeload.github.com/dymoo/c-vm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dymoo%2Fc-vm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34508867,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["c","virtual-machine","vm"],"created_at":"2026-06-18T22:02:26.982Z","updated_at":"2026-06-18T22:02:28.051Z","avatar_url":"https://github.com/dymoo.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple virtual machine (C version) by Dylan Moore\n\nThe virtual machine has 8 general purpose registers (0-7)\nI will probably use this in a interpreter at one point.\n\nI have wrote a example program, you can find it in the main procedure.\nIt prints out however many terms the fibonacci sequence that you pick.\n\n# Instructions :\nThis is a custom instruction set (made by me).\nIt is incredibly limited but you should be able to write most programs with it.\n\n# General instructions\nOperand is register number\n* ista - Store address. Stores contents of accumulator into register.\n* iadd - Add. Adds the contents of a register into the accumulator\n* isub - Subtract. Subtracts the contents of the register from the accumulator.\n* iout - Output. Outputs the contents of the register to the console.\n* ilda - Load address. Loads the contents of register into accumulator.\n\n# Comparisons\nOperand is the data you want to compare to.\n* icmp - Compare. Compares contents of register and accumulator, should precede conditional jump.\n    * Places 1 into the accumulator if the accumulator is larger than the contents of the register.\n    * Places 0 into the accumulator if the accumulator and contents of the register are the same.\n    * Places 2 into the accumulator if the accumulator is smaller than the contents of the register.\n\n# Conditional branching.\nOperand is the instruction you want to jump to.\n* ijmp - Jump. Jumps to address provided without condition.\n* ijlt - Jump if less than. Jumps to address provided if the result of the comparison was less than or there is 1 in the accumulator.\n* ijet - Jump if equal to. Jumps to address provided if the result of the comparison was equal or there is a 0 in the accumulator.\n* ijmt - Jump if more than. Jumps to address provided if the result of the comparison was more than or there is a 2 in the accumulator.\n\n# Etc functions\nOperand is none.\n* iinp - Input. Reads a unsigned int into the accumulator.\n* ihlt - Halt. Halts the virtual machine, should be used to end code execution.\n* inop - No operation. Does nothing, mainly used for debugging.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdymoo%2Fc-vm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdymoo%2Fc-vm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdymoo%2Fc-vm/lists"}