-
Notifications
You must be signed in to change notification settings - Fork 10
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
Problem assembling PUTs with release 2.0.1 on Windows #7
Comments
Thanks for your support! I have managed to reproduce this issue. I believe that the Thanks again for your input! |
Thanks peter, that makes sense. I’ve been designing a micro-edition of LC-3 which runs on resource constrained devices such as Arduino,etc. Your assembler will be very useful for the C compiler I’m now working on. Anyway if your interested I’ll be blogging it shortly .
Many thanks
Richard
…Sent from my iPhone
On 29 Dec 2019, at 23:28, Pete Fan ***@***.***> wrote:
Thanks for your support!
I have managed to reproduce this issue. I believe that the PUTs is being processed as a label on its own line rather than being recognized as an instruction. This behavior is intended since the documentation for LC3 assembly states that instructions other than branches should not be written in mixed-case. Changing the PUTs to puts or PUTS avoids the issue in the current implementation. I intend to add a warning for misinterpreted labels in a future release.
Thanks again for your input!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
That sounds awesome, Richard! Please drop a link to your project; I'm interested in trying it out myself. Best, |
I've just tried assembling a very simple program against v2.0.1. on Windows, but i'm not getting the object code written for the PUTs instruction - see source code below:
No errors/warnings were reported by the assembly process.
The output produces the following hex:
3000
E001
F025
0048
0065
006C
006C
006F
0020
0057
006F
0072
006C
0064
0021
0000
You can see the HALT (Trap code F025) immediately after the LEA (E001) instruction. Looks like we've skipped an instruction somehow ? Any chance you could take a look ?
Fantastic work btw - I've installed both the assembler and VS Code extensions - really nice !
The text was updated successfully, but these errors were encountered: