6502.org
http://forum.6502.org/

65Org32 / 65Org16 - interrupts
http://forum.6502.org/viewtopic.php?f=10&t=2016
Page 1 of 1

Author:  BigEd [ Mon Dec 12, 2011 9:41 am ]
Post subject:  65Org32 / 65Org16 - interrupts

Arlet wrote:
The idea of using register banks could still be useful for the 65OrgXX. Especially with the register file method, it's trivial to make a bigger register file, with some extra index bits connected to a state machine.

Another useful idea from other architectures is an interrupt vector controller. This would consist of a hardware interrupt priority encoder, combined with a table of interrupt vectors. Whenever there's a particular interrupt, the IRQ vector will be replaced with the value from the look up table, so the core would automatically jump to the correct handler. Extra bits from the table could be used to select the register file, for instance.

These things are quite simple to implement. They only take a little bit of logic, and aren't in the critical path.


(Agreed on the register file, certainly. Cheap and easy to implement, if you leave the complexity to the programmer. My own inclination would be to add a second bank, like the z80, and a swap instruction. Not to have any attempt at protection or privilege levels.)

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/