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

Fixed RESET functionality to emulate CPU behavior. #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

niclash
Copy link

@niclash niclash commented Feb 16, 2021

Additionally; LoadPrg is given address to load into, rather than having address in the beginning of its array.

RESET vector is not the position in memory where the CPU starts executing, but it contains the address to where the CPU should jump to and start to execute.

Also, just like NumBytes is not in the Program array of bytes, neither should the LoadAddress be, so it is passed as an argument.

* LoadPrg is given address to load into, rather than having address in the beginning of its array.
@learn-more
Copy link

@davepoo This PR seems correct to me, is there anything holding it back from getting merged?

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

Successfully merging this pull request may close these issues.

2 participants