Skip to content

Commit 1352594

Browse files
committed
Update API decoding to handle comments better.
Comments aren't really handled well in the parser at the moment, but we do now strip them if they are encountered.
1 parent a722932 commit 1352594

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

templates/aarch64-api.s.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
{%- if value in defmod.constants -%}
2828
{%- set value = defmod.constants.get(value).value -%}
2929
{%- endif -%}
30+
{%- if value is iterable -%}
31+
{%- set value = value[0] -%}
32+
{%- endif -%}
3033
{%- if value < 65536 or (value % 65536) == 0 -%}
3134
MOV x{{regnum}}, #{{value}}
3235
{%- else -%}

0 commit comments

Comments
 (0)