Repository navigation
v0.16.2 - Smart Print Optimization + DZRP Celebration
🎉 v0.16.2: Smart Print Optimization + DZRP Celebration
Highlights
- Smart @print optimization saves 9+ bytes per program
- Stateful print tracking reuses print_string helper
- Explicit loop halt intent:
loop { asm { EI; HALT } } - ZXSpeculator screenshot in README!
Print Optimization
- Tracks
print_stringusage across module - Lowers inline threshold from 8 to 3 chars once helper exists
"Answer: "(8 chars): 24 bytes inline → 15 bytes via helper- Code size analysis documented in source
DZRP Integration
mzrun: compile → assemble → upload → run in ONE command- ZXSpeculator recommended emulator
- Full step debugging, breakpoints, memory inspection
- Hot reload workflow for rapid development
Screenshot Proof
- hello_print.minz running on ZXSpeculator
- Shows "HELLO WORLD!", "This is MinZ!", "Answer: 42"
- Register panel visible with IFF flags enabled
Recommended emulator: https://github.com/oisee/ZXSpeculator
