1. 程式人生 > >ARM組合語言指令集(3)

ARM組合語言指令集(3)

Although the MOV/MVN mechanism will load a large range of constants into a register, sometimes this mechanism will not generate the required constant. Therefore, the assembler also provides a method which will load ANY 32 bit constant: LDR rd, = numeric constant.這種情況下,如果該常數可由MOV或MVN來實現,則會產生效果等同的MVN/MOV指令。Otherwise, the assembler will produce an LDR instruction with a PC-relative address to read the constant from a literal pool.