PDA

View Full Version : Bug in Example ivt.s


mckenney
05-15-04, 09:50 PM
There appears to be a bug in the ivt.s supplied with the GCC
Example program. The IRQ vector says:

LDR PC,[PC,#0xFFFFFFF0]

when it should be

LDR PC,[PC,#-0xFF0]

[Ordinarily I'd convey this via email, but I figured some might
want to just patch this since it's a one-liner.]

rob
05-16-04, 01:21 AM
Thanks for catching that. I messed up with the negative sign in manually translating -0xFF0. It should be, as you point out, -0xFF0 or if just in hex, 0xFFFFF010.

Rob