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

missing new line gives unexpected error message #2

Open
maks opened this issue Sep 11, 2023 · 1 comment
Open

missing new line gives unexpected error message #2

maks opened this issue Sep 11, 2023 · 1 comment

Comments

@maks
Copy link

maks commented Sep 11, 2023

Hi thanks for creating such a nice, small assembler.
Using the latest version and following your YT tutorial for the pico, I accidentally left a trailing newline with:

ldr r3, (r1, 42)

and got an error of:

[hw.s, 0] error: junk character ')'

which I only realised by chance was due to the missing end of line.

@maks
Copy link
Author

maks commented Sep 11, 2023

just as comparison when I did the same thing with the GNU assembler I got as an warning message:

gnu.s: Assembler messages:
gnu.s: Warning: end of file not at end of a line; newline inserted

and it still assembled the file.

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

1 participant