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

Support branching instructions #14

Open
mzarnowski opened this issue Nov 21, 2018 · 0 comments
Open

Support branching instructions #14

mzarnowski opened this issue Nov 21, 2018 · 0 comments
Assignees
Labels
feature New functionality

Comments

@mzarnowski
Copy link
Owner

Goals:
Branching instruction consist of:
a) condition
b) target

supported conditions are:

ALWAYS, 
IF_EQUAL, IF_NOT_EQUAL, 
IF_SMALLER, IF_NOT_SMALLER,
IF_GREATER, IF_NOT_GREATER, 

IF_ZERO, IF_NOT_ZERO, 
IF_SMALLER_THAN_ZERO, IF_NOT_SMALLER_THAN_ZERO,
IF_GREATER_THAN_ZERO, IF_NOT_GREATER_THAN_ZERO, 

target should be represented by a new Label type. Alongside Label, a meta-instruction DefineLabel should be introduced. It would be interpreted during JVM instruction generation as 'assign current byte offset with given label'

@mzarnowski mzarnowski added the feature New functionality label Nov 21, 2018
@mzarnowski mzarnowski self-assigned this Nov 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality
Projects
None yet
Development

No branches or pull requests

1 participant