Skip to content

Nanz book misleading about @print #17

Description

@blowback

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions