Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatter deletes assembly code #1

Open
NickCondron opened this issue Oct 13, 2024 · 1 comment
Open

Formatter deletes assembly code #1

NickCondron opened this issue Oct 13, 2024 · 1 comment

Comments

@NickCondron
Copy link

NickCondron commented Oct 13, 2024

./asmformat.exe test.asm

test.asm:

#To be inserted at 802641B0
li	r0, 1

becomes:


  #To be inserted at 802641B0
@metablaster
Copy link
Owner

metablaster commented Oct 13, 2024

Thank you for reporting!

I can reproduce it with asm sources which do not have a blank line at the end of a file (no line break).
As a workaround add a newline to each assembly file at the end of file before formatting.

A fix will require to add a newline if it's missing prior formatting, I'll implement this when I get back to project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants