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

Load Subset of Registers #26

Closed
craigthomas opened this issue Jun 22, 2024 · 0 comments · Fixed by #37
Closed

Load Subset of Registers #26

craigthomas opened this issue Jun 22, 2024 · 0 comments · Fixed by #37

Comments

@craigthomas
Copy link
Owner

craigthomas commented Jun 22, 2024

Currently, the Fx65 instruction will load the number of registers specified by x into the memory space pointed to by index. The index register is then post-incremented by the number of registers loaded (or not, depending on which quirk mode is activated).

The XO Chip specification calls for a subset load command as follows:

Fxy3

This will load a subset of registers from memory space pointed to by index starting in register x and ending in register y. Note that the index is not post-incremented. If x is larger than y - for example x=6 and y=2 - then registers are loaded from memory in reverse order (e.g. 6, 5, 4, 3, 2). The registers are include the start and end registers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant