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.

嵌入汇编指令



有这样一条跳转指令  asm(" LB   0x400 ");  当前跳转的地址是0x400,我想通过参数指定跳转地址,怎么实现呢?

比如我定义一个函数:

void jump(unsigned int      addr)

{

    asm(" LB   addr");  //  这条指令改如何写?

}