Skip to content
Snippets Groups Projects
Verified Commit 2f5c9be6 authored by Moritz Angermann's avatar Moritz Angermann
Browse files

Adds `.word` directive parsing.

parent 074512b7
No related branches found
No related tags found
No related merge requests found
......@@ -60,6 +60,8 @@ preprocess ('\t':attr) = let (h, t) = break isSpace attr
| otherwise -> [Ref $ (w x)]
(".long":x:_) | isNumber (w x) -> [Long $ read (w x)]
| otherwise -> [Ref $ (w x)]
(".word":x:_) | isNumber (w x) -> [Long $ read (w x)]
| otherwise -> [Ref $ (w x)]
(".space":x:_)| (w x) == "4" -> [Long 0]
| (w x) == "8" -> [Quad 0]
(".ascii":x:_) -> [Ascii $ read x]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment