Created
February 21, 2012 09:11
-
-
Save greneholt/1875338 to your computer and use it in GitHub Desktop.
Hack assembly C instruction regex
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
\A | |
(?:(?=[AMD])(A?M?D?)=)? # destination | |
( | |
[AMD][+\-&|][AMD1] | # binary operations | |
[\-!]?[AMD01] # unary operations | |
) | |
(?:;J([GL][ET]|EQ|NE|MP))? # jump | |
\Z |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment