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 go command #12

Open
hoglet67 opened this issue Nov 12, 2019 · 3 comments
Open

Add go command #12

hoglet67 opened this issue Nov 12, 2019 · 3 comments

Comments

@hoglet67
Copy link
Owner

To force the CPU to start executing at a given location.

There are a couple of approaches to consider:

  1. Extend the CPU core to support register writing on the debug interface (T80 already has this)
  2. Force a JMP xxxx command onto the CPU core data bus
hoglet67 added a commit that referenced this issue Nov 15, 2019
Change-Id: I35f3e02c54f87f19e9479985d2783e91fc681e40
@hoglet67
Copy link
Owner Author

In the 6502/65C02 I've added go and exec commands, which work by forcing opcode values onto the 6502 data bus.

It was quite involved to do this and there are race conditions with interrupts.

I'm not sure if I'm going to add this to the Z80 and 6809.

Let's see if it's every actually useful!

@obiwanjacobi
Copy link

Are there command to set register values? (a quick scan of the wiki says no)
Jumping to an address is nice and all, but usually the contents of the register can matter quite a bit...

@hoglet67
Copy link
Owner Author

No, currently it's not possible to set a register value.

This would be possible, but it would require some customizations to each core.

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

2 participants