{"id":13782736,"url":"https://github.com/jam1garner/another-simple-bytecode","last_synced_at":"2025-02-22T12:27:04.371Z","repository":{"id":66339259,"uuid":"90700798","full_name":"jam1garner/another-simple-bytecode","owner":"jam1garner","description":"A simple bytecode language I designed with an included assembler and virtual machine interpreter","archived":false,"fork":false,"pushed_at":"2017-06-22T20:03:38.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T09:51:40.743Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jam1garner.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}},"created_at":"2017-05-09T04:00:12.000Z","updated_at":"2021-02-18T10:09:21.000Z","dependencies_parsed_at":"2023-02-22T06:16:21.037Z","dependency_job_id":null,"html_url":"https://github.com/jam1garner/another-simple-bytecode","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jam1garner%2Fanother-simple-bytecode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jam1garner%2Fanother-simple-bytecode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jam1garner%2Fanother-simple-bytecode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jam1garner%2Fanother-simple-bytecode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jam1garner","download_url":"https://codeload.github.com/jam1garner/another-simple-bytecode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240173604,"owners_count":19759823,"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-08-03T18:01:43.072Z","updated_at":"2025-02-22T12:27:04.351Z","avatar_url":"https://github.com/jam1garner.png","language":"C","readme":"# Another Simple Bytecode\nA simple bytecode language I designed with an included assembler and virtual machine interpreter.\n\n### Features include:\n* 10 32-bit free use registers (r0-r9)\n* Ability to input/output characters and numbers to the console as well as print a string to the console\n* Most standard operations\n* Ability to access memory to store/load variables\n\n#### Requirements:\n* Requires python 2 for assembler\n* Any C compiler for virtual machine\n\n#### Compiling using GCC:\n\nCommand: `gcc virtual_machine.c`\n\n### Available opcodes:\n\n* nop\n\n* load constant (lc)\n\n* load constant upper (lcu)\n\n* load variable (lv)\n\n* store variable (str)\n\n* push to stack (push)\n\n* pop from stack (pop)\n\n* branch if not equal (bin)\n\n* branch if less than (bil)\n\n* branch if equal (bie)\n\n* branch if greater (big)\n\n* branch without condition (b)\n\n* compare (cmp)\n\n* syscall (sys)\n\n* increment counter (inc)\n\n* decrement counter (dec)\n\n* copy register (copy)\n\n* swap register (swap)\n\n* add (add)\n\n* subtract (sub)\n\n* multiply (mult)\n\n* divide (div)\n\n* modulus (mod)\n\n* or (or)\n\n* and (and)\n\n* xor (xor)\n\n* not (not)\n\n* left shift (ls)\n\n* right shift (rs)\n\n\n### Available registers:\n\n* r0-r9\n\n* acc\n\n* br  (branch conditional is stored here, cmp has less than = -1, greater than = 1, equal to = 0)\n\n* c   (counter)\n\n* ss  (stack start)\n\n* se  (stack end)\n\n### Available syscalls:\n\n* 0 - pop value and output it to console\n\n* 1 - pop char and output it to console\n\n* 2 - input value from console and push it\n\n* 3 - input char from console and push it\n\n* 4 - print string from stack\n","funding_links":[],"categories":["C"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjam1garner%2Fanother-simple-bytecode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjam1garner%2Fanother-simple-bytecode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjam1garner%2Fanother-simple-bytecode/lists"}