A51: RELOCATING RESET AND INTERRUPT VECTORS
Information in this article applies to:
I'm using the evaluation version of the µVision2 IDE and I'm creating an assembly program. When I create my program, I can't execute the reset vector or any interrupt vectors. I'm creating the reset vector and interrupt vectors as relocatable segments.
reset segment code rseg reset jmp main inter segment code rseg inter jmp ex0_isr junk segment code rseg junk main: nop jmp main ex0_isr: nop jmp ex0_isr end
How can I create the reset vector and interrupt vectors in the evaluation software?
You must use the CSEG directive to create the reset and interrupt vectors. Then use RSEG to create your code segments. For example:
cseg at 0 jmp main cseg at 3 jmp ex0_isr junk segment code rseg junk main: nop jmp main ex0_isr: nop jmp ex0_isr end
Last Reviewed: Monday, August 21, 2006
of your data.