{"id":16109940,"url":"https://github.com/ohjurot/sregmachine","last_synced_at":"2026-04-13T02:05:10.283Z","repository":{"id":114395877,"uuid":"384679721","full_name":"Ohjurot/SRegMachine","owner":"Ohjurot","description":"Simple register machine for learning assembler (Windows .NET)","archived":false,"fork":false,"pushed_at":"2021-07-10T11:40:05.000Z","size":1451,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T11:13:50.477Z","etag":null,"topics":["assembler-emulator","assembly-language","csharp","dotnet","register-machine"],"latest_commit_sha":null,"homepage":"","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/Ohjurot.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,"publiccode":null,"codemeta":null}},"created_at":"2021-07-10T11:17:20.000Z","updated_at":"2021-07-10T11:38:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"25917d33-6069-4fde-a6b5-90ce60f31692","html_url":"https://github.com/Ohjurot/SRegMachine","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/Ohjurot%2FSRegMachine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ohjurot%2FSRegMachine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ohjurot%2FSRegMachine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ohjurot%2FSRegMachine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ohjurot","download_url":"https://codeload.github.com/Ohjurot/SRegMachine/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247438261,"owners_count":20938889,"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":["assembler-emulator","assembly-language","csharp","dotnet","register-machine"],"created_at":"2024-10-09T19:34:58.198Z","updated_at":"2026-04-13T02:05:10.219Z","avatar_url":"https://github.com/Ohjurot.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SRegMachine\nSimple register machine for learning assembler (Windows .NET 4.8)\n\n![SRegMachine_Image](./image.png)\n\n\n\n## Instruction List\n\n#### Loading and moving Values\n\n```assembly\nLOADI \u003creg0\u003e $value # Load the value '$value' into register 'reg0'\n```\n\n```assembly\nMOV \u003creg0\u003e \u003creg1\u003e # Copyies the value from 'reg1' into 'reg0'\n```\n\n#### Math with registers\n\nEvery math instructions will set flags (zero, neg, ov)\n\n```assembly\nADD \u003creg0\u003e \u003creg1\u003e # 'reg0' = 'reg0' + 'reg1'\n```\n\n```assembly\nSUB \u003creg0\u003e \u003creg1\u003e # 'reg0' = 'reg0' - 'reg1'\n```\n\n```assembly\nMUL \u003creg0\u003e \u003creg1\u003e # 'reg0' = 'reg0' * 'reg1'\n```\n\n```assembly\nDIV \u003creg0\u003e \u003creg1\u003e # 'reg0' = 'reg0' / 'reg1'\n```\n\n```assembly\nMOD \u003creg0\u003e \u003creg1\u003e # 'reg0' = 'reg0' % 'reg1'\n```\n\n#### Math with integers\n\nEvery math instructions will set flags (zero, neg, ov)\n\n```assembly\nADD \u003creg0\u003e $value # 'reg0' = 'reg0' + 'value'\n```\n\n```assembly\nSUB \u003creg0\u003e $value # 'reg0' = 'reg0' - 'value'\n```\n\n```assembly\nMUL \u003creg0\u003e $value # 'reg0' = 'reg0' * 'value'\n```\n\n```assembly\nDIV \u003creg0\u003e $value # 'reg0' = 'reg0' / 'value'\n```\n\n```assembly\nMOD \u003creg0\u003e $value # 'reg0' = 'reg0' % 'value'\n```\n\n#### Jumping\n\nLabels are defined by typing a ':' (Collum)\n\n```assembly\nJMP $label_name # Will jumpt to 'label_name'\n```\n\n```assembly\nJMPZ $label_name # Will jumpt to 'label_name' when zero flag is set\n```\n\n```assembly\nJMPNZ $label_name # Will jumpt to 'label_name' when zero flag is NOT set\n```\n\n```assembly\nJMPN $label_name # Will jumpt to 'label_name' when negative flag is set\n```\n\n```assembly\nJMPNN $label_name # Will jumpt to 'label_name' when negative flag is NOT set\n```\n\n```assembly\nJMPO $label_name # Will jumpt to 'label_name' when overflow flag is set\n```\n\n```assembly\nJMPNO $label_name # Will jumpt to 'label_name' when overflow flag is NOT set\n```\n\n#### Flow Control\n\n```assembly\nHOLD # Will hold the execution\n```\n\n```assembly\nRST # Will reset to the first instuction (continues execution)\n```\n\n```assembly\nEOF # End of file (RST + HOLD)\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohjurot%2Fsregmachine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fohjurot%2Fsregmachine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohjurot%2Fsregmachine/lists"}