TI中文支持网
TI专业的中文技术问题搜集分享网站

28377D浮点数取绝对值翻译成汇编和手册上有出入

66               TempSetPoint  = abs(F_SetPoint);
          C$L7:
0000a11c:   73C08908    MMOV32     MR0, @0x8908, UNCF
0000a11e:   78410000    MMOVIZ     MR1, #0x0
0000a120:   7D600000    MF32TOI32  MR0, MR0
0000a122:   7F200004    MCMP32     MR0, MR1
0000a124:   7FA00000    MNOP      0000a126:   7FA00000    MNOP      0000a128:   7FA00000    MNOP      0000a12a:   7983000A    MBCNDD     0xa, GEQ
0000a12c:   7FA00000    MNOP      0000a12e:   7FA00000    MNOP      0000a130:   7FA00000    MNOP      0000a132:   7CE00004    MSUB32     MR0, MR1, MR0
          C$L8:
0000a134:   7D800000    MI32TOF32  MR0, MR0
0000a136:   74C08906    MMOV32     @0x8906, MR0

这是编写时C语言生成的汇编语句,翻看资料,汇编取绝对值不是应该采用MMABSF32 MRa, MRb 32-Bit Floating-Point Absolute Value的语句吗?

Floating Point mode选择的relaxed

求解答,谢谢

user5233622:这是在CLA中

66               TempSetPoint  = abs(F_SetPoint);
          C$L7:
0000a11c:   73C08908    MMOV32     MR0, @0x8908, UNCF
0000a11e:   78410000    MMOVIZ     MR1, #0x0
0000a120:   7D600000    MF32TOI32  MR0, MR0
0000a122:   7F200004    MCMP32     MR0, MR1
0000a124:   7FA00000    MNOP      0000a126:   7FA00000    MNOP      0000a128:   7FA00000    MNOP      0000a12a:   7983000A    MBCNDD     0xa, GEQ
0000a12c:   7FA00000    MNOP      0000a12e:   7FA00000    MNOP      0000a130:   7FA00000    MNOP      0000a132:   7CE00004    MSUB32     MR0, MR1, MR0
          C$L8:
0000a134:   7D800000    MI32TOF32  MR0, MR0
0000a136:   74C08906    MMOV32     @0x8906, MR0

这是编写时C语言生成的汇编语句,翻看资料,汇编取绝对值不是应该采用MMABSF32 MRa, MRb 32-Bit Floating-Point Absolute Value的语句吗?

Floating Point mode选择的relaxed

求解答,谢谢

Susan Yang:

回复 user5233622:

我会在测试后给您回复,请您等待

66               TempSetPoint  = abs(F_SetPoint);
          C$L7:
0000a11c:   73C08908    MMOV32     MR0, @0x8908, UNCF
0000a11e:   78410000    MMOVIZ     MR1, #0x0
0000a120:   7D600000    MF32TOI32  MR0, MR0
0000a122:   7F200004    MCMP32     MR0, MR1
0000a124:   7FA00000    MNOP      0000a126:   7FA00000    MNOP      0000a128:   7FA00000    MNOP      0000a12a:   7983000A    MBCNDD     0xa, GEQ
0000a12c:   7FA00000    MNOP      0000a12e:   7FA00000    MNOP      0000a130:   7FA00000    MNOP      0000a132:   7CE00004    MSUB32     MR0, MR1, MR0
          C$L8:
0000a134:   7D800000    MI32TOF32  MR0, MR0
0000a136:   74C08906    MMOV32     @0x8906, MR0

这是编写时C语言生成的汇编语句,翻看资料,汇编取绝对值不是应该采用MMABSF32 MRa, MRb 32-Bit Floating-Point Absolute Value的语句吗?

Floating Point mode选择的relaxed

求解答,谢谢

user5233622:

回复 Susan Yang:

好的,谢谢

66               TempSetPoint  = abs(F_SetPoint);
          C$L7:
0000a11c:   73C08908    MMOV32     MR0, @0x8908, UNCF
0000a11e:   78410000    MMOVIZ     MR1, #0x0
0000a120:   7D600000    MF32TOI32  MR0, MR0
0000a122:   7F200004    MCMP32     MR0, MR1
0000a124:   7FA00000    MNOP      0000a126:   7FA00000    MNOP      0000a128:   7FA00000    MNOP      0000a12a:   7983000A    MBCNDD     0xa, GEQ
0000a12c:   7FA00000    MNOP      0000a12e:   7FA00000    MNOP      0000a130:   7FA00000    MNOP      0000a132:   7CE00004    MSUB32     MR0, MR1, MR0
          C$L8:
0000a134:   7D800000    MI32TOF32  MR0, MR0
0000a136:   74C08906    MMOV32     @0x8906, MR0

这是编写时C语言生成的汇编语句,翻看资料,汇编取绝对值不是应该采用MMABSF32 MRa, MRb 32-Bit Floating-Point Absolute Value的语句吗?

Floating Point mode选择的relaxed

求解答,谢谢

Susan Yang:

回复 user5233622:

很高兴能帮到您

赞(0)
未经允许不得转载:TI中文支持网 » 28377D浮点数取绝对值翻译成汇编和手册上有出入
分享到: 更多 (0)