Live site: https://tryquetra.github.io/setun-online-simulator?lang=us
This repository contains a browser-based simulator (simulator UI) of the Soviet ternary computer Setun (MCVM), implemented as a static web application using HTML, CSS, and vanilla JavaScript.
- Purpose: Provide an interactive, educational simulator for the Setun ternary computer with UI components for registers, control switches/buttons, memory view, and simple I/O devices (FT-1, FT-2, and a printer panel).
- Stack: Static site — HTML, CSS, and JavaScript (no build tools or package manager).
- Entry point:
index.html - Main script:
js/main.js - Styles:
css/styles.css
- A modern web browser (Chrome, Firefox, Edge, Safari). No installation required.
- Optional: A local static HTTP server if you prefer serving files instead of opening
index.htmldirectly.
- Quick start (open from filesystem):
- Double‑click
index.htmlor open it in your browser.
- Double‑click
- Serve with a simple static server (optional examples):
- Python 3:
python -m http.server 8080and navigate tohttp://localhost:8080/ - Node npm http-server (if available):
npx http-server -p 8080then openhttp://localhost:8080/ - Any other static server will work similarly.
- Python 3:
There is no package.json or build system. The term "scripts" here refers to runtime UI actions available in the app:
- Language switch: EN/PT buttons in the top bar.
- Theme toggle: switch between light/dark (icon button at the top right).
- Load program/data: buttons to read FT‑1 (program) and FT‑2 (data) into memory.
- Start/Stop/Remote: control the execution of the currently loaded program or a manual command entered via switches.
- None required for running the static site.
- The app is fully client‑side. All logic is in
js/main.jsand UI inindex.html, with styles incss/styles.css.
- MIT License (see the
LICENSEfile at the repository root).
Site ao vivo: https://tryquetra.github.io/setun-online-simulator?lang=pt
- Propósito: Fornecer um simulador interativo e educacional do computador ternário Setun, com componentes de UI para registradores, botões/chaves de controle, visão de memória e dispositivos simples de E/S (FT‑1, FT‑2 e painel de impressora).
- Stack: Site estático — HTML, CSS e JavaScript (sem ferramentas de build ou gerenciador de pacotes).
- Ponto de entrada:
index.html - Script principal:
js/main.js - Estilos:
css/styles.css
- Um navegador moderno (Chrome, Firefox, Edge, Safari). Não é necessária instalação.
- Opcional: Um servidor HTTP estático local, caso prefira servir os arquivos em vez de abrir
index.htmldiretamente.
- Início rápido (abrindo do sistema de arquivos):
- Dê duplo clique em
index.htmlou abra o arquivo no seu navegador.
- Dê duplo clique em
- Servir com um servidor estático simples (exemplos opcionais):
- Python 3:
python -m http.server 8080e acessehttp://localhost:8080/ - Node http-server (se disponível):
npx http-server -p 8080e abrahttp://localhost:8080/ - Qualquer outro servidor estático também funciona.
- Python 3:
Não há package.json nem sistema de build. Aqui, "scripts" refere‑se às ações da interface em tempo de execução:
- Troca de idioma: botões EN/PT na barra superior.
- Alternância de tema: claro/escuro (botão com ícone no canto superior direito).
- Carregar programa/dados: botões para ler FT‑1 (programa) e FT‑2 (dados) para a memória.
- Iniciar/Parar/Remoto: controlar a execução do programa carregado ou de um comando manual inserido pelas chaves.
- Nenhuma é necessária para executar o site estático.
- O aplicativo é totalmente client‑side. Toda a lógica está em
js/main.jse a UI emindex.html, com estilos emcss/styles.css.
- Licença MIT (consulte o arquivo
LICENSEna raiz do repositório).