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.

[参考译文] MSP430F5529:如何使用 asm 语言将代码从64KB 跳转到地址?

Guru**** 2524550 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/597636/msp430f5529-how-to-use-the-asm-language-to-jump-the-code-to-the-address-out-of-64kb

器件型号:MSP430F5529

您好!

出于某些原因、我需要将代码跳转到内存空间、其中超过64KB、下面是我的代码:

asm ("br &0x143D2;");

但 在强制执行之后会出现错误、使用 ASM 语言跳转到64KB 地址的正确方法是什么?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    MOVA #045678h、PC

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    BR 是一个16位指令。 等效的20位指令是 BRA。 (请参阅《用户指南》第6.6.2.8和6.6.4.2节。)

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。