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

.lst file does not word w/ Simulate 3.0.1.0 #9

Open
MarkKozel opened this issue Nov 19, 2021 · 4 comments
Open

.lst file does not word w/ Simulate 3.0.1.0 #9

MarkKozel opened this issue Nov 19, 2021 · 4 comments

Comments

@MarkKozel
Copy link

I am using the LC-3 Edit and LC-3 Simulate (runtime) from McGraw-Hill. I can assemble using laser, then run in Simulate. The .obj file excutes as expected, but Simlate appears to not understand the .lst file format

The effect is that the Simulate tool does not display the labels

Assembled with Edit:
Edit

Assembled with Laser:
Laser

@vyduckien
Copy link
Contributor

vyduckien commented Nov 20, 2021

Apparently the .lst format generated by LC3Edit is different from the one by Laser (see the picture below). There are two options, either to modify the .lst file format to fit LC3Simulate or to create another version of LC3Simulate that can interpret Laser's .lst file.
issue_with_lst

@PaperFanz
Copy link
Owner

Hi all! Thank you for using my little tool. Unfortunately, UT Austin (my undergrad institution) is no longer using LC3Simulate for running and debugging LC3 assembly. Therefore, I did not target a particular simulation environment for the assembly listing, instead choosing to support a more human readable format that preserves comments and spacing characters in the assembly source. However, if you are interested in forking the code to provide compatibility with LC3Simulate, I'd be happy to provide assistance. As you can see from the screenshot from @vyduckien , the data in both files is the same; it is simply a formatting change.

P.S. If you are interested in Laser, feel free to check out my VSCode extension for LC3 Assembly, which I wrote to get away from LC3Edit.

@MarkKozel
Copy link
Author

MarkKozel commented Nov 20, 2021 via email

@PaperFanz
Copy link
Owner

We now use LC3Tools for editing, assembling, and simulating. I will note that LC3Tools is completely incompatible with the Laser object output as I am unrelated to that project. It also lacks some assembly features compared to Laser, most notably project assembly mode, which allows exporting labels across files (.EXPORT and .IMPORT) and register renaming (.ALIAS).

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

3 participants