Tap Run to execute
main.asm · output appears here
Press Run to execute
Output streams here as your program runs.
MIPS is the assembly language most computer-architecture courses start with: 32 general registers with readable names ($t0-$t9 temporaries, $s0-$s7 saved, $a0-$a3 arguments, $v0-$v1 results), a load/store design where only lw and sw touch memory, and a small instruction set that fits on one reference card. CompileBytes runs your program with SPIM 8.0, the classic simulator used in class alongside MARS, so .data strings, .text code, labels, pseudo-instructions such as li, la and move, and the familiar syscall table (1 print_int, 4 print_string, 5 read_int, 8 read_string, 10 exit) all work as they do in the textbook.
Put your program in main.asm with a global main label: the simulator starts there and the exit syscall ends the run. Output from print syscalls appears in the console and read syscalls take their input from the stdin box. Assembly errors show the offending line, and a program that falls off the end of main without calling exit is reported as an error, the same way MARS flags it. Nothing to install: the simulator runs on the server, so this works for homework, for checking a function before an exam, or for trying out what a branch or a stack frame really does.
main.asm is the entry point for each run.
Use the Input panel to pipe standard input to your program when it needs data.
Run sends your code to a fresh hosted runtime and streams the result into the output panel.
Your draft stays in this browser, and Share creates a separate snapshot link.
The editor uses Monaco, the engine behind VS Code, with language-aware editing tools and familiar keyboard controls.
Type or paste your code into the editor, then click Run (or press Ctrl/Cmd + Enter) to execute it.
Output streams into the console panel, including runtime errors, exit status, and execution time.
Nothing to install and no account to create — code runs in an isolated hosted runtime.
Language-aware autocomplete and IntelliSense suggestions where the editor has a matching language service
Syntax highlighting, with native compiler and runtime errors shown in the console
Bracket matching, auto-indentation, code folding, and a minimap
Multi-cursor editing plus find & replace (Ctrl/Cmd + F)
Full undo/redo history and copy to clipboard
Built on Monaco — the same editor that powers VS Code
Run on demand with Run or Ctrl/Cmd + Enter, or turn on Auto-run in the editor settings to execute after each typing pause
Stop long-running or infinite programs at any time
A real console shows standard output, errors, exit status, and execution time
Pass standard input (stdin) to your program from the Input panel — one value per line
Switch between light and dark themes
Adjust font size and other editor settings
Toggle side-by-side or top/bottom layouts
Enter distraction-free fullscreen mode
Generate a shareable link to your exact code in one click — no login needed
Your work autosaves to your browser, so you can pick up where you left off
Copy the active file to your clipboard
Run code: Ctrl/Cmd + Enter
Find & replace: Ctrl/Cmd + F
Open the full shortcut list from the keyboard icon in the toolbar
MIPS Assembly is one of 47 single-file compiler scratchpads. Each run submits only main.asm; local sibling-file imports are not enabled.
Linked-project languages (28): Node.js, TypeScript, Deno, Python, C, Go, Dart, Swift, Rust, Ruby, PHP, Java, Luau, Kotlin, C++, C#, Nim, Crystal, Haxe, Zig, Scala, D, Verilog, GDScript, RISC-V Assembly, ARM64 Assembly, Bun, Objective-C.
Single-file scratchpads (47): Matplotlib, NumPy, pandas, Haskell, Clojure, Perl, Lua, Tcl, jq, Raku, Elixir, Bash, Zsh, Nushell, R, Assembly (NASM), Julia, Octave, Groovy, PowerShell, Visual Basic .NET, Odin, Pascal, Lisp, Erlang, CoffeeScript, COBOL, BASIC, V, Racket, OCaml, Prolog, AWK, Emacs Lisp, Emojicode, Forth, F#, Fortran, Assembly (NASM64), MIPS Assembly, Solidity, Mojo, Ada, WASM (WAT), Gleam, Shell Script (sh), Scheme.
Download file exports the active MIPS Assembly source file.