AtomBusMon icon indicating copy to clipboard operation
AtomBusMon copied to clipboard

Add go command

Open hoglet67 opened this issue 5 years ago • 3 comments

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 avatar Nov 12 '19 14:11 hoglet67

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!

hoglet67 avatar Nov 15 '19 11:11 hoglet67

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...

obiwanjacobi avatar Nov 15 '19 14:11 obiwanjacobi

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

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

hoglet67 avatar Dec 13 '19 15:12 hoglet67