{"id":27091751,"url":"https://github.com/dgame/vm","last_synced_at":"2025-04-06T07:53:35.357Z","repository":{"id":150593909,"uuid":"51299833","full_name":"Dgame/VM","owner":"Dgame","description":null,"archived":false,"fork":false,"pushed_at":"2016-02-08T13:57:51.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-04-04T07:17:21.520Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Dgame.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}},"created_at":"2016-02-08T13:37:10.000Z","updated_at":"2023-04-29T00:53:56.526Z","dependencies_parsed_at":"2023-04-29T00:53:55.937Z","dependency_job_id":null,"html_url":"https://github.com/Dgame/VM","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dgame%2FVM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dgame%2FVM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dgame%2FVM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dgame%2FVM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dgame","download_url":"https://codeload.github.com/Dgame/VM/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247451625,"owners_count":20940946,"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":"2025-04-06T07:53:34.878Z","updated_at":"2025-04-06T07:53:35.350Z","avatar_url":"https://github.com/Dgame.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VM - A simple Virtual-Machine \n\n## Pseudo-Code Input\n```\nvar a = 42\nprint a\n\nvar b = 23\nprint b\n\nvar c = a + b\nprint c\n\nprint 'Hallo Welt'\nprint 42\nprint 3.14\n\nif a \u003e b {\n    print 'b is lower than a'\n} else {\n    print 'a is lower than b'\n}\n\nvar i = 0\nwhile i \u003c 5 {\n    print i\n}\n```\n\n## OpCode-Output:\n\nSchema: `\u003cOpCode\u003e \u003cOperand1\u003e[, \u003cOperand2\u003e]`\n\n```\nassign \u00260, 42\nprint \u00260\nassign \u00261, 23\nprint \u00261\nadd \u00260, \u00261\nassign \u00262, ~0\nprint \u00262\nprint 'Hallo Welt'\nprint 42\nprint 3.14\nis_lower \u00260, \u00261\nskip_if_not #2\nprint 'a is lower than b'\nskip #1\nprint 'b is lower than a'\nassign \u00263, 0\nis_lower_or_equal 5, \u00263\nskip_if #4\nprint \u00263\nadd \u00263, 1\nassign \u00263, ~0\nskip #-5\n```\n\n| OpCode        | Interpretation          |\n| ------------- |:-------------:\n|`\u0026\u003cnumber\u003e`|Variable|\n|`~\u003cnumber\u003e`|Stack-Offset|\n|`#\u003cnumber\u003e`|Address-Offset|\n\n## Console-Output / Interpretation:\n```\n42\n23\n65\nHallo Welt\n42\n3.14\nb is lower than a\n0\n1\n2\n3\n4\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgame%2Fvm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdgame%2Fvm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgame%2Fvm/lists"}