microchip harmony

[复制链接]
6541|3
 楼主| dfli 发表于 2022-3-18 14:41 | 显示全部楼层 |阅读模式
__builtin_disable_interrupts();
这个函数的汇编代码都包含哪些内容?
ynwa 发表于 2022-3-18 17:25 | 显示全部楼层
这是编译器的内建函数,你可以通过反汇编看对应的汇编代码。
 楼主| dfli 发表于 2022-3-18 17:56 | 显示全部楼层
!SYS_INT_PROCESSOR_STATUS  SYS_INT_StatusGetAndDisable ( void )
!{
0x9D0261EC: ADDIU SP, SP, -8
0x9D0261F0: SW RA, 4(SP)
!    SYS_INT_PROCESSOR_STATUS processorStatus;
!    /* Save the processor status and then Disable the global interrupt */
!    processorStatus = ( SYS_INT_PROCESSOR_STATUS )__builtin_disable_interrupts();
0x9D0261F4: DI V0
0x9D0261F8: EHB
!    /* return the processor status */
!    return processorStatus;
!}
0x9D0261FC: LW RA, 4(SP)
0x9D026200: JR RA
0x9D026204: ADDIU SP, SP, 8

多谢!
cooldog123pp 发表于 2022-3-19 12:17 | 显示全部楼层
貌似没有拿microchip 做过项目,路过见识一下,支持一下,帮忙一起水一下,继续加油!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

5

主题

17

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部