Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/assembly/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Assembly MSP430代码分析_Assembly_Gdb_Msp430 - Fatal编程技术网

Assembly MSP430代码分析

Assembly MSP430代码分析,assembly,gdb,msp430,Assembly,Gdb,Msp430,因此,如果在装配带有rf2500芯片的msp430时有以下语句 0x0000c06a <+44>: 3f 40 22 00 mov #34, r15; 0x0022 0x0000c06a:3f 40 22 00 mov#34,r15;0x0022 及 0x0000c07c:3e 53添加#-1,r14;r3 As==11 每条指令占用多少字节?六个字节的值显示在地址后面: ___________ 0x0000c06a <+44>

因此,如果在装配带有rf2500芯片的msp430时有以下语句

0x0000c06a <+44>: 3f 40 22 00 mov  #34, r15; 0x0022
0x0000c06a:3f 40 22 00 mov#34,r15;0x0022

0x0000c07c:3e 53添加#-1,r14;r3 As==11

每条指令占用多少字节?

六个字节的值显示在地址后面:

                   ___________
0x0000c06a <+44>:  3f 40 22 00  mov  #34, r15; 0x0022
0x0000c07c <+62>:  3e 53        add  #-1, r14; r3 As==11
                   ^^^^^^^^^^^
___________
0x0000c06a:3f 40 22 00 mov 34,r15;0x0022
0x0000c07c:3e 53添加#-1,r14;r3 As==11
^^^^^^^^^^^

所以我只需将所有十六进制数相加,然后除以8?或者第一个是4,第二个是2?
                   ___________
0x0000c06a <+44>:  3f 40 22 00  mov  #34, r15; 0x0022
0x0000c07c <+62>:  3e 53        add  #-1, r14; r3 As==11
                   ^^^^^^^^^^^