Skip to content

Fixed RESET functionality to emulate CPU behavior.#4

Open
niclash wants to merge 1 commit intodavepoo:masterfrom
niclash:master
Open

Fixed RESET functionality to emulate CPU behavior.#4
niclash wants to merge 1 commit intodavepoo:masterfrom
niclash:master

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