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

Add support for index memory cells #4

Closed
11 tasks done
LMH01 opened this issue Sep 27, 2023 · 1 comment
Closed
11 tasks done

Add support for index memory cells #4

LMH01 opened this issue Sep 27, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@LMH01
Copy link
Owner

LMH01 commented Sep 27, 2023

Index memory cells should be supported. For that a new section named "Index Memory Cells" should be added below the current "Memory Cells" section.

It would be nice if the tui section could somehow be merged with the memory cells section (so that booth lists are surrounded with the same line).

How it works

p(6) := 42
a1 := 30
 y := 5
 loop:
 p(y) := 5
 if y = a1 goto end
 y := y + 1
 goto loop
 end:

Nach Zeile 1
 x |  p(x)
---|------
 5 |     
 6 |   42
 7 |     
 8 |     
.. |  ....
30 |     

Nach Programm Ende 
 x |  p(x)
---|------
 5 |     5
 6 |     5
 7 |     5
 8 |     5
.. |  ....
30 |     5

Tasks

  • Add documentation for how index memory cells work
  • Parsing
  • Runtime: target type support - implement that value can be assigned to index memory cell
  • Runtime: value type support - implement that value can be read from index memory cell
  • Value struct - add IndexMemoryCell variant
  • Add support for alpha accumualtors
  • Add support for gamma (y or $\gamma$) accumulator, gamma will just be a specially named accumulator. Gamma register should only be present in the accumulator ui list, when it is actually used, related to Add new accumulator gamma #10
  • Add tests
  • Add ui support
  • Implement automatic recognition for gamma, accumulators and memory cells in index memory cell instructions
  • Modify flag with which values can be loaded into memory cells to support loading values into index memory cells
@LMH01 LMH01 added the enhancement New feature or request label Sep 27, 2023
@LMH01 LMH01 self-assigned this Sep 27, 2023
LMH01 added a commit that referenced this issue Sep 30, 2023
LMH01 pushed a commit that referenced this issue Oct 3, 2023
@LMH01
Copy link
Owner Author

LMH01 commented Oct 4, 2023

I have decided to display the index memory cells in the same list as the normal memory cells instead of creating a new section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant