WD FEED not compiling correctly

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

WD FEED not compiling correctly

773件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by JGold on Fri Jan 21 08:27:10 MST 2011
When I try to feed the WDFEED register with 0xaa then 0x55, the compiler always send 0x55.

WTF?????
0 件の賞賛
返信
2 返答(返信)

766件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Fri Jan 21 10:05:30 MST 2011
Watching 'Core Registers' while debugging with 'Instruction Stepping Mode' can show you actual r2 values...

... and help to understand this instructions :)
0 件の賞賛
返信

766件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Fri Jan 21 09:34:06 MST 2011
That code is completely correct. Note that the instruction is
mvn.w r3, #85 ; 0x55


The MVN instruction takes the value of Operand2, performs a bitwise logical NOT operation on the value, and places the result into Rd.

Please ensure you read the code properly before posting...
0 件の賞賛
返信