Hey guys. Now I know the title makes this seem very non-game related, but this is actually for a game I am working on. So, basically, I want to design a simple CPU. I have done this in the past, but I have always simplified things. I haven’t touched interrupts. All I have done is a basic cpu with registers, an instruction set, etc. but never any more. Now, for this game, I want to have a CPU of my own design that is 32 bit (64 maybe? probably not needed… but maybe) That is … well… maybe a bit more powerful than a Z80? As far as all of its features go. The main thing I need help with is interrupts. I think I pretty much get them, but I have little/no idea how they actually work and how to program them into an emulated CPU. I am going to start out by writing a detailed specification for the CPU to go by. That way, i’ll know what im coding. But I would like to get the interrupts thing figured out first. If anyone is able to help me out with this, it would be greatly appreciated! Thanks!
EDIT:
Maybe a more proper way to word it would be a simulated CPU not an emulated one…