Assembly, BASIC & 25 Languages with AI
RetroCode is a free retro-inspired desktop IDE by Senzall. Write 8-bit assembly, program in BASIC, code in 25 modern languages, and let AI help through MorselHub — Claude, Ollama, or GitHub Copilot.
v1.4.0 · macOS 12+ (Apple Silicon) · Windows 11+ (x64) · Free
Assembly, BASIC, and Code — switch between them with a click. Each mode has its own file tabs, editor, reference panels, and terminal.
Syntax highlighting for 26 languages. Multiple file tabs, find/replace, autocomplete, bracket matching, go-to-line, comment toggle, and word wrap. Run, debug, and build from the embedded terminal.
A simple 8-bit CPU with 36 instructions. Two registers (A, B), 256 bytes of memory, zero and carry flags, stack, and a 64x48 pixel graphics display. Step-through debugger included.
A TRS-80-style BASIC interpreter with 40+ commands. Line numbers, green-screen terminal, INKEY$ for real-time games, and bitmap graphics with PLOT, DRAW, CIRCLE.
Connect to Claude (via MCP), Ollama (local AI), or GitHub Copilot through MorselHub. AI can write code, run programs, manage files, and control the editor via 23 MCP tools.
Up to 4 concurrent terminal sessions with tab switching. Built-in xterm.js with shell selection, available in all three modes.
26 assembly lessons and 25 BASIC lessons. Start from "What is a CPU?" and build up to games and graphics. Over 50 runnable sample programs included.
Up to 5 file tabs in each mode. Independent content, session recovery across crashes and reboots, and full keyboard shortcuts.
Default (green terminal), Standard, Dark, Light, RPG, and High Contrast. Choose your aesthetic or match your accessibility needs.
A visual tour of RetroCode's three modes, AI integration, and retro-inspired interface.
64x48 Graphics Output
Built-In Reference
Running Assembly Code
26 Assembly Lessons
BASIC Graphics
BASIC Reference
BASIC Editor
35 BASIC Samples
26 Languages
Embedded Terminal
File Tabs
File Browser
MCP Tools Panel
AI-Assisted Coding
BASIC Frog via iMessage
AI + Assembly
Default (Green Terminal)
Dark
Light
RPG
High Contrast
Settings
Run, debug, and build in 26 languages. Each has syntax highlighting, file detection, and integrated terminal execution.
MorselHub is your universal AI broker. Connect to Claude, Ollama, or GitHub Copilot. AI can write code, run programs, and control RetroCode through 23 auto-discovered MCP tools.
Uses your Claude Max/Pro subscription through Claude Code CLI.
claude mcp add retrocode node ~/mcp-server.js/retrocode in Claude CodeRun AI locally — no internet, no API keys, no token charges.
ollama pull qwen3-vl:4bUse your existing GitHub Copilot subscription for AI assistance.
Talk through the RetroCode chat panel. AI responds in real time.
AI writes directly in your editor with syntax highlighting.
Execute programs in the terminal. Run assembly, BASIC, or any language.
Create, save, and manage project files via chat.
AI reads what you've written and suggests improvements.
Move between Assembly, BASIC, and Code. Manage tabs and files.
| Category | Tools |
|---|---|
| Editor | get_editor, set_editor, append_editor |
| Files | save_file, read_file |
| Tabs | list_tabs, switch_tab, new_tab |
| Terminal | open_terminal, close_terminal, terminal, terminal_output |
| Chat | chat, get_chat, heartbeat |
| Control | run, stop, switch_mode, get_mode |
| Reference | asm_reference, basic_reference |
| System | health, list_languages |
The CPU has 36 instructions organized into 7 categories. All values are 8-bit (0x00 to 0xFF). Two registers (A, B), 256 bytes of memory, zero and carry flags.
| Hex | Mnemonic | Description |
|---|---|---|
| Data Movement | ||
| 00 | NOP | No operation |
| 01 | LDA addr | Load A from memory address |
| 02 | LDI val | Load immediate value into A |
| 03 | STA addr | Store A to memory address |
| 04 | LDB addr | Load B from memory address |
| 05 | LBI val | Load immediate value into B |
| 06 | STB addr | Store B to memory address |
| 07 | MOV | Copy A to B |
| Arithmetic & Stack | ||
| 10 | ADD | A = A + B |
| 11 | SUB | A = A - B |
| 12 | INC | A = A + 1 |
| 13 | DEC | A = A - 1 |
| 14 | ADI val | A = A + immediate |
| 15 | MUL | A = A * B |
| 16 | DIV | A = A / B |
| 17 | MOD | A = A % B |
| 18 | PUSH | Push A onto stack |
| 19 | POP | Pop stack into A |
| Logic | ||
| 20 | AND | A = A AND B |
| 21 | OR | A = A OR B |
| 22 | XOR | A = A XOR B |
| 23 | NOT | A = NOT A |
| 24 | SHL | Shift A left |
| 25 | SHR | Shift A right |
| 26 | CPI val | Compare A with immediate |
| Compare & Branch | ||
| 30 | CMP | Compare A with B |
| 31 | JMP addr | Jump to address |
| 32 | JZ addr | Jump if zero flag set |
| 33 | JNZ addr | Jump if zero flag clear |
| 34 | JC addr | Jump if carry flag set |
| I/O & Graphics | ||
| 40 | OUT | Output A to display |
| 41 | INP | Input to A |
| 50 | PLT | Plot pixel at (A, B) |
| 51 | UPL | Unplot pixel at (A, B) |
| 52 | CLG | Clear graphics |
| FF | HLT | Halt |
A complete BASIC interpreter with 40+ commands, math and string functions, graphics, game input, and a virtual file system.
PRINT, INPUT, LET, GOTO, IF/THEN, FOR/NEXT/STEP, GOSUB/RETURN, REM, END, CLS, DIM, DATA/READ/RESTORE, ON GOTO/GOSUB, STOP/CONT, POKE/PEEK
INT, RND, ABS, SQR, SGN, SIN, COS, TAN, LOG, EXP
LEN, LEFT$, RIGHT$, MID$, CHR$, ASC, TAB, VAL, STR$
INKEY$ — non-blocking key detection for real-time games. Supports arrow keys, WASD, SPACE, ENTER, ESC, and all printable characters. Game loops run at ~60fps.
PLOT, UNPLOT, DRAW, CIRCLE, BOX, FILL, GCLS, COLOR, LOCATE
SAVE$, LOAD$, DIR, DEL — persistent storage in the browser
Free to download and use. No account required. No internet required after download.
MorselHub for macOS — AI broker for Claude, Ollama, and Copilot. Adds iMessage and webhook integration.
Shortcuts for macOS. On Windows, replace Cmd with Ctrl.
Full documentation is available in the app (Learn tab + Reference panels) and online.