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

Implement tcall pseudo-instruction #15

Open
kevinhartman opened this issue May 26, 2020 · 0 comments
Open

Implement tcall pseudo-instruction #15

kevinhartman opened this issue May 26, 2020 · 0 comments
Labels
assembler enhancement New feature or request

Comments

@kevinhartman
Copy link
Owner

kevinhartman commented May 26, 2020

This one will be a little bit more interesting, since this should cause proper code for the target CPU to be generated.

One way to do this would be to let tcall instructions fall through from the pseudo instruction handler (don't handle, but probably log the call), and expect that each AssemblerTarget handler will handle tcall.

Another approach would be to have a separate method on AssemblerTarget for generating tcall code, which the assembler core could attach to the pseudo instruction handler (i.e. function pointer in pseudo instruction handler's constructor).

@kevinhartman kevinhartman added enhancement New feature or request assembler labels May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assembler enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant