{"id":20799875,"url":"https://github.com/xnacly/register_machine","last_synced_at":"2026-01-18T13:29:36.495Z","repository":{"id":104333419,"uuid":"481757533","full_name":"xNaCly/register_machine","owner":"xNaCly","description":"Registermachine with 7 slots and simple arithmetic operators","archived":false,"fork":false,"pushed_at":"2022-04-15T09:41:40.000Z","size":11,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-09T13:24:37.067Z","etag":null,"topics":["assembly","c"],"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/xNaCly.png","metadata":{"files":{"readme":"README","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":"2022-04-14T21:43:20.000Z","updated_at":"2024-07-25T17:28:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"7889a989-ff6a-4c17-9222-e221f040e279","html_url":"https://github.com/xNaCly/register_machine","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/xNaCly%2Fregister_machine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xNaCly%2Fregister_machine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xNaCly%2Fregister_machine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xNaCly%2Fregister_machine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xNaCly","download_url":"https://codeload.github.com/xNaCly/register_machine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247107831,"owners_count":20884797,"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","c"],"created_at":"2024-11-17T18:10:34.512Z","updated_at":"2026-01-18T13:29:36.482Z","avatar_url":"https://github.com/xNaCly.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"REGMACH\n=======\nRegistermachine with 7 slots and simple arithmetic operators\n\n\nSpecifics\n---------\nSLOT0 is reserved for temporary operations, therefore assigning values to this slot is not allowed:\n    \n    Error: provided 'set_value' can not be assigned to 'SLOT0', assigning to SLOT0 is not allowed!. Line: 4\n\nIf an operator is used, which isn't specified below the interpreter throws the following error:\n    \n    Error: selected operator invalid or unavailable. Line: 4\n    \nIf no file is passed, the interpreter throws this:\n\n    Error: missing file. 32\n\n\nRun\n---\n    \n    make all\n\n\nREGMACH syntax\n---------------\nAll operations must be between the keywords:\n    \n    BEGIN\n\nand \n\n    END\n\n\nPossible Operators:\n    - LOADI \u003cVALUE\u003e         : Set SLOT0 to VALUE\n    - LOAD  \u003cSLOT\u003e          : Load SLOT into SLOT0\n    - ADD   \u003cSLOT\u003e          : Add SLOT's value to SLOT0\n    - SUB   \u003cSLOT\u003e          : Subtract SLOT's value from SLOT0\n    - MULT  \u003cSLOT\u003e          : Multiply SLOT0 with SLOT\n    - DIV   \u003cSLOT\u003e          : Divide SLOT0 with SLOT\n    - STORE \u003cSLOT\u003e          : STORE SLOT0 in SLOT\n    \nSimple Example:\n      1 BEGIN\n      2 LOADI 22 \n      3 STORE 1\n      4 LOADI 3\n      5 STORE 2 \n      6 LOAD 1\n      7 DIV 2\n      8 MULT 2\n      9 STORE 3\n     10 LOAD 1\n     11 SUB 3\n     12 STORE 3\n     13 END\n\n  Result:\n    LOADI 22: {22,0,0,0}\n    STORE  1: {0,22,0,0}\n    LOADI  3: {3,22,0,0}\n    STORE  2: {0,22,3,0}\n     LOAD  1: {22,22,3,0}\n      DIV  2: {7,22,3,0}\n     MULT  2: {21,22,3,0}\n    STORE  3: {0,22,3,21}\n     LOAD  1: {22,22,3,21}\n      SUB  3: {1,22,3,21}\n    STORE  3: {0,22,3,1}\n      END  0: {0,22,3,1}\n\n\nTry Example locally\n------------------\n    \n    git clone https://github.com/xNaCly/register_machine.git regmach\n    cd regmach\n    make example\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxnacly%2Fregister_machine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxnacly%2Fregister_machine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxnacly%2Fregister_machine/lists"}