klauspost / asmfmt

Go Assembler Formatter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Weird indentation for nasm macros

RechieKho opened this issue · comments

Here is what I got after asmfmt my nasm file :

    %macro FINISH 0 
    pusha
    call something 
    jc %%success
    call error
%%success:
    popa
    %endmacro

It is enclosed in a header guard.

This is for Go (plan 9) assembly. It may or may not work on other formats and may need some manual tweaks