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

[SSP16ASM] Implement a two-pass assembly process #4

Open
jdesiloniz opened this issue Feb 16, 2021 · 0 comments
Open

[SSP16ASM] Implement a two-pass assembly process #4

jdesiloniz opened this issue Feb 16, 2021 · 0 comments

Comments

@jdesiloniz
Copy link
Owner

After introducing the missing instruction LD A, addr (as in LD A, 050 to access mem bank 0 - addr 50), the whole labeling system has broke (in 0.1.3). The whole labeling/constants system is too flimsy and convoluted. This would be fixed by redoing the whole assembly process with a proper two-pass approach:

  1. parse code in a first pass to calculate label locations based on each instruction size (properly calculated, not as of now).
  2. replace labels and constants with the actual values
  3. perform second pass with the instructions (along with proper values) to generate assembled file.
@jdesiloniz jdesiloniz changed the title Implement a two-pass assembly process [SSP16ASM] Implement a two-pass assembly process Feb 17, 2021
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