📄 led_ia.asm
字号:
;********************************************************************************************************
; Embedded Systems Building Blocks
; Complete and Ready-to-Use Modules in C
;
; Multiplexed LED Display Driver
; LED Multiplex ISR
; Intel 80x86 (LARGE MODEL)
;
; (c) Copyright 1999, Jean J. Labrosse, Weston, FL
; All Rights Reserved
;
; File : LED_IA.ASM
; By : Jean J. Labrosse
;********************************************************************************************************
PUBLIC _DispMuxISR
EXTRN _DispMuxHandler:FAR
EXTRN _OSIntExit:FAR
EXTRN _OSIntNesting:BYTE
.MODEL LARGE
.CODE
.186
;*********************************************************************************************************
; OUTPUT NEXT SEGMENTS PATTERN TO LED DISPLAY MATRIX
; void DispMuxISR(void)
;*********************************************************************************************************
_DispMuxISR PROC FAR
;
PUSHA ;Save processor's context
PUSH ES
PUSH DS
;
INC BYTE PTR _OSIntNesting ; Notify uC/OS-II of ISR
CALL FAR PTR _DispMuxHandler ; Call C routine to handle multiplexing
CALL FAR PTR _OSIntExit ; Exit through uC/OS-II scheduler
;
POP DS ;Restore processor's context
POP ES
POPA
;
IRET ;Return to interrupted code
;
_DispMuxISR ENDP
END
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -