完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
例:
btjt PB_IDR,#1,PC-1;需要它,而不是工作 。标签 btjt PB_IDR,#1,label;工作,不需要它 请帮忙... 以上来自于谷歌翻译 以下为原文 example: btjt PB_IDR, #1, PC-1; need it, not working .label btjt PB_IDR, #1, label; not need it, working please help... |
|
相关推荐
11个回答
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
你好user75!
随STVD一起发布的ST Assembler-Linker用户手册的第23页(第4.3.6节 - 操作数)解释了符号'*'的含义和用法。 在我看来,*应该只在你的例子中的内联循环中使用。 至于其他用途,使用标签总是更好。 以上来自于谷歌翻译 以下为原文 Hello user75! Page 23 (section 4.3.6 - operands) of the ST Assembler-Linker User Manual that is distributed with STVD explains the meaning and some uses of the symbol '*'. In my opinion, * should be used only in inline-loops as in your example. As regards the other uses, it's always better to use labels. |
|
|
|
|
|
我是否正确写下了?
btjt PB_IDR,#1,{* -1} 以上来自于谷歌翻译 以下为原文 whether correctly I wrote down? btjt PB_IDR, #1, {*-1} |
|
|
|
|
|
|
|
|
|
|
|
我同意,但有时会发生更方便的PC-N
以上来自于谷歌翻译 以下为原文 I agree, but sometimes happens more convenient PC-N |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
user75,
在翻译当前指令之前,将*视为汇编程序更新*的标签。 出于这个原因,指令: 有效,因为*是汇编程序处理此行时发出的第一个字节(五个字节)的地址。 当您使用{* -1}时(我建议您使用大括号来避免汇编程序错误),可以避免汇编程序协助计算有效的跳转目标。 当你的计算错误时,没有组装错误,只有执行错误(如果你是luky)或一个难以调试的奇怪行为。 为什么不应该使用汇编程序标签功能来避免这些讨厌的错误? 以上来自于谷歌翻译 以下为原文 user75, consider * as a label which the assembler updates *before* translating the current instruction. For this reason, the instruction:
works, because * is the address of the first byte (of five bytes) that the assembler emits when it process this line. When you use {*-1} (I suggest you to use the curly brackets to avoid assembler errors), you avoid the assembler assistance in computing a valid jump destination. When your computation is wrong, there are no assembling errors, but only execution errors (if you are luky) or a strange behaviour which are difficult to debug. Why one should not use the assembler label feature to avoid these nasty errors? |
|
|
|
|
|
它也可能是一个标签,我通过AVR传递到ST,它已经只是一个习惯虽然ST汇编程序允许更多
|
|
|
|
|
|
BTJT PB_IDR,#0,*
我想,这就足够了 以上来自于谷歌翻译 以下为原文 BTJT PB_IDR,#0,* I think, it will be enough |
|
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
1471 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
1523 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3673 浏览 1 评论
3864 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2480 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
750浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
683浏览 5评论
729浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
973浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
778浏览 5评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-13 21:22 , Processed in 0.874094 second(s), Total 62, Slave 55 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2734