๐ฒ
WAT2Z80
Because someone had to bridge 2026 and 1978. Now with strings attached. ๐งถ
v2.1 โ 634 opcodes + Strings
Target:
ZX Spectrum
Game Boy
CP/M
MSX
Amstrad CPC
Generic Z80
Origin:
0x
๐ Opcodes
๐ค Strings
๐ Load Example...
Add Two Numbers
Fibonacci
Simple Loop
Memory Store/Load
Bitwise Operations
Conditional
๐ Hello World String
๐ String Length
๐ String Compare
๐ String Copy (LDIR)
๐ Print String (Spectrum)
๐ Multi-String Table
๐ Escaped Characters
String Operations
Enc:
ASCII
ZX Spectrum
MSX
CP/M
Term:
Null (\0)
Length-prefix
Dollar ($)
Raw (none)
๐ Copy Hex
๐พ .bin
๐ Share
โธ WAT INPUT
7 lines
1
2
3
4
5
6
7
(module (memory (export "mem") 1) (data (i32.const 0x100) "Hello, Z80 World!\00") (func (export "greet") (result i32) i32.const 0x100 ;; pointer to string ) )
โก COMPILE
Ctrl+Enter
โธ Z80 ASSEMBLY
โต
Compile WAT to see Z80 assembly
โธ BINARY OUTPUT
HEX
BINARY
STRINGS
๐
Binary output will appear here
โพ
Compilation Log
โ
Ready. 634 Z80 opcodes loaded. String support enabled. Enter WAT code and press Compile.