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

📄 workingregister.asm

📁 Alarm clock with PIC microcontroller
💻 ASM
字号:
;==============================================================================
; Working Register Interrupt Save Area
;------------------------------------------------------------------------------

; Notes:
;
; When an interrupt routine is entered the code must save the W register before
; it can begin saving any of the other important registers (e.g. STATUS, PCLATH
; and FSR). As switching bank would alter the STATUS file we have two choices
; depending on the PIC device model:
;
; 1. Reserve a shared register file that can be accessed from any bank, or
;
; 2. Reserve one, two or four files which occupy the same relative position in
;    all available banks.
;
; Unfortunately there is no easy way to do this for all PIC versions so we have
; to use conditional compilation for each supported device.

;==============================================================================
; Revision History:
;
; 2005-01-24 AJ Initial version
;------------------------------------------------------------------------------

                include ../pic.inc

                if      HAS_INTERRUPTS

                global  _WREG

                ifdef   __12F675
                udata_shr
_WREG           res     1
                endif

                ifdef   __16F628
                udata_shr
_WREG           res     1
                endif

                ifdef   __16F74
.save0          udata   h'20'
_WREG           res     1

.save1          udata   h'a0'
                res     1
                endif

                endif
                end

⌨️ 快捷键说明

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