Re: Most Interesting Bug Track Down
- From: Chris Dollin <chris.dollin@xxxxxx>
- Date: Tue, 28 Nov 2006 11:08:08 +0000
Mark F. Haigh wrote:
... A single additional line of assembly code. Aparrently a
preprocessor macro in a header file far, far away had decided to use
the value of __LINE__ for field debugging of production code. Since
the CPU was an ARM7, and the ARM instruction set can only load a 12 bit
immediate IIRC,
(fx:OT
An eight-bit value on an even bit boundary in the 32-bit word: the
12-bit immediate value is the 8-bit field and a 4-bit /rotate/
count. So not only can the value be at the bottom, middle, or
top of the word, it can be split between the top and the bottom!
)
--
Chris "Magenta - the best colour of sound" Dollin
"Reaching out for mirrors hidden in the web." - Renaissance, /Running Hard/
.
- References:
- Most Interesting Bug Track Down
- From: Frederick Gotham
- Re: Most Interesting Bug Track Down
- From: Mark F. Haigh
- Most Interesting Bug Track Down
- Prev by Date: Re: Macros
- Next by Date: Re: Reading a string of unknown size
- Previous by thread: Re: Most Interesting Bug Track Down
- Next by thread: Re: Most Interesting Bug Track Down
- Index(es):
Relevant Pages
|
|