{"id":22055792,"url":"https://github.com/rysteq/stacky","last_synced_at":"2025-06-25T03:08:07.239Z","repository":{"id":214912896,"uuid":"737655614","full_name":"RysteQ/Stacky","owner":"RysteQ","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-01T01:42:26.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T16:15:42.568Z","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/RysteQ.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-01T00:09:33.000Z","updated_at":"2024-01-01T00:09:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"d7b0beea-e98d-4d96-9463-34631218512a","html_url":"https://github.com/RysteQ/Stacky","commit_stats":null,"previous_names":["rysteq/stacky"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RysteQ/Stacky","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RysteQ%2FStacky","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RysteQ%2FStacky/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RysteQ%2FStacky/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RysteQ%2FStacky/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RysteQ","download_url":"https://codeload.github.com/RysteQ/Stacky/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RysteQ%2FStacky/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261795334,"owners_count":23210620,"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-11-30T16:11:32.700Z","updated_at":"2025-06-25T03:08:07.214Z","avatar_url":"https://github.com/RysteQ.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# Stacky\n\nStacky is a stack based interpreted language that I made in a few hours as a stepping stone in my journey to interpreters. Stacky is a simple language, only compromising of 21 instructions with 18 of them requiring no operands at all and the stack being 64 kilobytes in size.\n\nThe instructions are as follows\n\n\u003ctable\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003e\u003cb\u003eInstruction\u003c/b\u003e\u003c/td\u003e\n\t\t\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003ePUSH\u003c/td\u003e\n\t\t\u003ctd\u003ePushes the byte value provided into the stack\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003ePOP\u003c/td\u003e\n\t\t\u003ctd\u003ePops the last value pushed from the stack\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003ePOPP\u003c/td\u003e\n\t\t\u003ctd\u003ePops the last value pushed from the stack and prints out the integer\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003ePOPPC\u003c/td\u003e\n\t\t\u003ctd\u003ePops the last value pushed from the stack and prints out the ASCII character\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003eINC\u003c/td\u003e\n\t\t\u003ctd\u003ePops the last value pushed from the stack, increments it, and pushes it back into the stack\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003eDEC\u003c/td\u003e\n\t\t\u003ctd\u003ePops the last value pushed from the stack, decrements it, and pushes it back into the stack\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003eADD\u003c/td\u003e\n\t\t\u003ctd\u003ePops the last two values from the stack, adds them, and pushes the result into the stack\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003eSUB\u003c/td\u003e\n\t\t\u003ctd\u003ePops the last two values from the stack, subtracts them, and pushes the result into the stack\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003eMUL\u003c/td\u003e\n\t\t\u003ctd\u003ePops the last two values from the stack, multiplies them, and pushes the result into the stack\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003eDIV\u003c/td\u003e\n\t\t\u003ctd\u003ePops the last two values from the stack, divides them, and pushes the quotient into the stack\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003eMOD\u003c/td\u003e\n\t\t\u003ctd\u003ePops the last two values from the stack, divides them, and pushes the remainder into the stack\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003eCOPY\u003c/td\u003e\n\t\t\u003ctd\u003ePops the last value from the stack and pushes it two times into the stack\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003eCCF\u003c/td\u003e\n\t\t\u003ctd\u003eClears the conditional flag\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003eCMPE\u003c/td\u003e\n\t\t\u003ctd\u003ePops the last two values from the stack and compares them, if they are equal the conditional flag is set to true\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003eCMPL\u003c/td\u003e\n\t\t\u003ctd\u003ePops the last two values from the stack and compares them, if the first value is smaller than the second the conditional flag is set to true\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003eCMPG\u003c/td\u003e\n\t\t\u003ctd\u003ePops the last two values from the stack and compares them, if the first value is bigger than the second the conditional flag is set to true\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003eJC\u003c/td\u003e\n\t\t\u003ctd\u003eJumps to the specified line if the conditional flag is set to true\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003eJMP\u003c/td\u003e\n\t\t\u003ctd\u003eJumps to the specified line\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003eRPUSH\u003c/td\u003e\n\t\t\u003ctd\u003eRead a key character from the keyboard as input and pushes the value into the stack\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003eNEWL\u003c/td\u003e\n\t\t\u003ctd\u003ePrints a new line character\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003eHAULT\u003c/td\u003e\n\t\t\u003ctd\u003eStops the program and sets the exit code equal to the value provided\u003c/td\u003e\n\t\u003c/tr\u003e\n\u003c/table\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frysteq%2Fstacky","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frysteq%2Fstacky","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frysteq%2Fstacky/lists"}