The Nanz Book v7, s18.3 says "For real hardware, @print can be remapped to ROM routines (e.g., RST $10 on ZX Spectrum)."
AFAICT this is not the case, or at least it is no longer the case. Builtins are special, they cannot be overloaded, and they do not switch based on the target package (unlike the old backend, which did) - so adding a custom target won't work either.
So currently @print() => OUT (0x23) and the only way to change it is to monkey about with z80codegen.go
The Nanz Book v7, s18.3 says "For real hardware, @print can be remapped to ROM routines (e.g., RST $10 on ZX Spectrum)."
AFAICT this is not the case, or at least it is no longer the case. Builtins are special, they cannot be overloaded, and they do not switch based on the target package (unlike the old backend, which did) - so adding a custom target won't work either.
So currently
@print()=>OUT (0x23)and the only way to change it is to monkey about with z80codegen.go