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

:sparkless: FEATURE: Add variables support #12

Open
LucaDillenburg opened this issue Sep 20, 2020 · 0 comments
Open

:sparkless: FEATURE: Add variables support #12

LucaDillenburg opened this issue Sep 20, 2020 · 0 comments

Comments

@LucaDillenburg
Copy link
Member

Is your feature request related to a problem? Please describe.
I'm always frustrated when I have to remember the memory address of all the data I have stored in RAM.

Describe the solution you'd like
Create variables that point to a memory address so that we don't have to remember the address. The Assembler should also know and calculate to which address to point automatically.
Code example with variable support (just an example, not this syntax necessarily):

# variable declaration at the beginning of the file
declare var_name

add var_name
store var_name

Describe alternatives you've considered
Part of the problem could be solved by a memory address alias. However, then the programmer would have to calculate where would the variable be created.

Additional context
Add any other context or screenshots about the feature request here.

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