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 conditional assembly pseudo-operation #12

Open
craigthomas opened this issue Apr 5, 2020 · 0 comments
Open

Implement conditional assembly pseudo-operation #12

craigthomas opened this issue Apr 5, 2020 · 0 comments

Comments

@craigthomas
Copy link
Owner

Many assemblers allow for conditional assembly of statement blocks. This issue will implement conditional assembly by adding a COND pseudo operation that defines the start of a conditional block, and ENDC which defines the end of a conditional block. Conditionals come in the form of:

COND <expression>
<statements>
ENDC

Where:

  • <expression> is a traditional expression that contains two values separated by an operation.
  • <statements> are the assembly language statements to be included in the conditional block.
  • ENDC ends the conditional block.

The conditional block is only assembled if the value of the <expression> results in a non-zero value. Conditional blocks cannot be nested.

@craigthomas craigthomas changed the title Implement conditional assembly pseudo operation Implement conditional assembly pseudo-operation Aug 20, 2020
@craigthomas craigthomas added this to the Release Version 1.2.0 milestone Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant