CODE RED: BUG found in the assembler

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

CODE RED: BUG found in the assembler

341 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by MikeSimmonds on Mon Oct 01 11:38:05 MST 2012
[FONT=Tahoma][SIZE=2]LPXpresso 4.3.0 XP Prof SP3 32 bit.

Given "adds r0, r0, 0x7FF" the assembler emits F210 70FF; This is not a legal opcode.
There [I]is[/I] no legal encodeing for the above (AAv7M) so an error should have been given.

The second instruction is what I should have coded (for comparison).

Presumably, other 'data processing' instructions may exhibit the same bad behaviour.

The attached project shows this; don't have to build, just view the files.

Presumably, a fix will be forthcomming.:)

Cheers, Mike

[/SIZE][/FONT]
0 项奖励
回复
1 回复

335 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Tue Oct 02 00:55:27 MST 2012
Agreed, [FONT=Tahoma][SIZE=2][FONT=Courier New]adds r0, r0, 0x7FF[/FONT] should not assemble. Thanks for the report - will be fixed in a future release.

Regards,
CodeRedSupport
[/SIZE][/FONT]
0 项奖励
回复