🔲
WAT2Z80
Because someone had to bridge 2025 and 1978.
Target:
ZX Spectrum
Game Boy
CP/M
MSX
Amstrad CPC
Generic Z80
Origin:
0x
📖 Opcodes
📂 Load Example...
Add Two Numbers
Subtract
Multiply
Simple Constant
Conditional
Simple Loop
Hello World (Easter Egg!)
Memory Store/Load
📋 Copy Hex
💾 .bin
🔗 Share
▸ WAT INPUT
7 lines
1
2
3
4
5
6
7
(module (func (export "add") (param i32 i32) (result i32) local.get 0 local.get 1 i32.add ) )
⚡ COMPILE
Ctrl+Enter
▸ Z80 ASSEMBLY
⟵
Compile WAT to see Z80 assembly
▸ BINARY OUTPUT
HEX
BINARY
🔌
Binary output will appear here
▾
Compilation Log
▋
Ready. Enter WAT code and press Compile.