-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support arbitrary length arithmetic expressions
Before this change, you could only supply "offsets" in the form of BASE+OFF or BASE-OFF where BASE was a label or number and OFF was a number. After looking at the Merlin manual, the assembly actually supports 4 arithmetic operations: add, subtract, divide, and multiply. Evaluation is done left to right and parenthesis are disallowed. Another constraint is length--"the maximum allowable combined OPERAND+COMMENT length is 64 characters"--but this is not enforced by a2asm.
- Loading branch information
Showing
2 changed files
with
81 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters