{"id":23747716,"url":"https://github.com/nirvanasupermind/termite","last_synced_at":"2025-09-04T21:33:27.447Z","repository":{"id":39755993,"uuid":"496505943","full_name":"nirvanasupermind/termite","owner":"nirvanasupermind","description":"Termite is a virtual machine for a ternary-based RISC CPU architecture.","archived":false,"fork":false,"pushed_at":"2024-06-30T09:30:46.000Z","size":2599,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-07-02T00:55:02.287Z","etag":null,"topics":["assembly-language","programming-language","ternary","ternary-computer","virtual-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/nirvanasupermind.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":"2022-05-26T06:24:13.000Z","updated_at":"2024-05-15T22:11:44.000Z","dependencies_parsed_at":"2023-11-29T05:31:18.745Z","dependency_job_id":"25b6e699-e64d-492f-a3e3-d6abfe41c3a0","html_url":"https://github.com/nirvanasupermind/termite","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/nirvanasupermind%2Ftermite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nirvanasupermind%2Ftermite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nirvanasupermind%2Ftermite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nirvanasupermind%2Ftermite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nirvanasupermind","download_url":"https://codeload.github.com/nirvanasupermind/termite/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231999644,"owners_count":18458180,"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-language","programming-language","ternary","ternary-computer","virtual-machine"],"created_at":"2024-12-31T14:55:48.962Z","updated_at":"2024-12-31T14:55:49.585Z","avatar_url":"https://github.com/nirvanasupermind.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Termite icon](./icon.png)\n# Termite\nVersion 1.1.1\n\nTermite is an emulator for a 16-trit balanced [ternary](https://en.wikipedia.org/wiki/Ternary_numeral_system) (base 3) computer written in C++11, with a clock rate of approximately 450 kHz. Termite uses trytes of 8 trits and big-endian words of 16 trits. Addresses are 1 word long, so Termite can address 3^16 = 43046721 trytes of memory. Some example files you can run with `teremu` are provided in the examples directory.\n\n[Documentation for Termite](documentation.md)\n\n## Included command-line programs\nThese can be built using `make` (Mac/Linux only, and may require root permission).\n\nIf you need to compile from source, navigate to where Termite is installed and use these commands on Mac/Linux:\n```\nclang++ src/core/*.cpp src/teremu/*.cpp -o \u003cdestination for teremu\u003e -std=c++11\nclang++ src/core/*.cpp src/terasm/*.cpp -o \u003cdestination for terasm\u003e -std=c++11\n```\nOn Windows:\n```\nclang++ src\\core\\*.cpp src\\teremu\\*.cpp -o \u003cdestination for teremu\u003e -std=c++11\nclang++ src\\core\\*.cpp src\\terasm\\*.cpp -o \u003cdestination for terasm\u003e -std=c++11\n```\n\n(If you are using another C++ compiler, replace `clang++` with it.)\n\n\n* `teremu`: For running Termite machine code executable files. -v option can be added for verbose mode, where the values of all registers are printed after each instruction runs. File format for Termite executables is .texe.\n\n* `terasm`: For transpiling Termite assembly files into executable files. \n\n## Future ideas\n* High-level C-like programming language which compiles into Termite assembly.\n* Semigraphical or graphical display instead of using the command line for the output.\n\n## Changelog\n* 1.1.1 (2023-12-26): Documentation for assembly and minor bugfix in `src/teremu/main.cpp`\n* 1.1 (2023-12-24): `terasm` assembler, added instructions like `xor` and `xori`\n* 1.0 (2023-07-09): Initial release, no assembler yet","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnirvanasupermind%2Ftermite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnirvanasupermind%2Ftermite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnirvanasupermind%2Ftermite/lists"}