Monday, December 28, 2009

Interruptions

I started to puzzle out software interrupts.

I placed an SWI command in my latest sample code. When execution reached the SWI line, it jumped to line 8 - just as I expected from the explanations I've read.

I gather that in a real application, the first few commands are simple branches to different exception handlers. I saw this in some of the sample code in the Keil tool.

So, to do it right, I need a small intro section that gets compiled first and jumps to the right locations.

I may go back to some of the startup programs and look again at how that works.

No comments:

Post a Comment