⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tick.asm

📁 UCOSII使用Z80单片机开发
💻 ASM
字号:
;********************************************************************************************************
;                                               uC/OS
;                        Microcomputer Real-Time Multitasking Operating System
;                                               KERNEL
;
;                         (c) Copyright 1994, Jean J. Labrosse, Plantation, FL
;                                          All Rights Reserved
;
;
;                                               TICK ISR
;                                                 Z-80
;
; File : TICK.ASM
; By   : Jean J. Labrosse
;********************************************************************************************************


;*********************************************************************************************************
;                                            HANDLE TICK ISR
;*********************************************************************************************************

_TickISR:

            EI                              ; Allow interrupt nesting
;
            PUSH   AF                       ; Save task's context
            PUSH   BC
            PUSH   DE
            PUSH   HL
            PUSH   IX
            PUSH   IY
;
            CALL   _OSIntEnter              ; Notify uC/OS of ISR
            CALL   _OSTimeTick              ; Process system tick
            CALL   _OSIntExit               ; Notify uC/OS of end of ISR
;
            POP    IY                       ; Restore interrupted task's context
            POP    IX
            POP    HL
            POP    DE
            POP    BC
            POP    AF
;
            RETI                            ; Return to interrupted task

_TickISR

            PUBLIC _TickISR

            EXTRN  _OSIntEnter
            EXTRN  _OSIntExit
            EXTRN  _OSTimeTick

            END

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -