This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

关于F28035的CLA汇编

CLA中的汇编与C28X汇编有什么区别? 都是差不多?

  • 功能上差不多,但是指令完全不一样(类似)。

    另外CLA是浮点,C28x是定点,CLA的指令要少很多,不过CLA也有C28x没有的某些功能更强的指令。

    还有,由于流水线的不同,CLA在某些指令前后必须有三个MNOP指令,CLA的断点也是通过指令(MDEBUGSTOP)来实现的,而任务结束是MSTOP完成。

  •  

    Same instruction format as the C28x and C28x+FPU
    Destination operand is always on the left
     
     
    Fixed Point:    MPY     ACC, T,  loc16
    Floating Point:    MPYF32  R0H, R1H, R2H
    CLA:    MMPYF32 MR0, MR1, MR2
     
     
    Type
    Example
    Cycles
    Load (Conditional)
       MMOV32      MRa,mem32{,CONDF}
    1
    Store
       MMOV32      mem32,MRa
    1
    Load With Data Move
       MMOVD32     MRa,mem32
    1
    Store/Load MSTF
       MMOV32      MSTF,mem32
    1
    Compare, Min, Max
       MCMPF32     MRa,MRb
    1
    Absolute, Negative Value
       MABSF32     MRa,MRb
    1
    Unsigned Integer To Float
       MUI16TOF32  MRa,mem16
    1
    Integer To Float
       MI32TOF32   MRa,mem32
    1
    Float To Integer & Round
       MF32TOI16R  MRa,MRb
    1
    Float To Integer
       MF32TOI32   MRa,MRb
    1
    Multiply, Add, Subtract
       MMPYF32     MRa,MRb,MRc
    1
    1/X (16-bit Accurate)
       MEINVF32    MRa,MRb
    1
    1/Sqrt(x) (16-bit Accurate)
       MEISQRTF32  MRa,MRb
    1
     
x 出现错误。请重试或与管理员联系。