Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New printchar instruction #216

Open
cardillan opened this issue Feb 5, 2025 · 0 comments
Open

New printchar instruction #216

cardillan opened this issue Feb 5, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@cardillan
Copy link
Owner

A new printchar instruction has been added to the latest version (BE).

While it is possible to create the instruction using the mlog function:

inline def printchar(ascii)
    mlog("printchar", in ascii);
end;

the problem is that the instruction manipulates the text buffer, which the optimizer is unaware of. For safe use the print merging optimization would have to be turned off by #set print-merging = none;.

In the next version, the instruction will be added to the Logic 8 instruction set, the optimizer will be made aware of it, constant arguments will be properly evaluated and merged and the processor emulator will recognize the instruction.

Notes:

  • The instruction allows printing double quotes to the text buffer.
  • The instruction allows printing content icons directly. This should be recognized and potentially optimized by print merger.
@cardillan cardillan added the enhancement New feature or request label Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant