?? boot.lis
字號:
008F ; copy idata to data segment
008F ;----------------------------
008F 5000 mov A,>__idata_start
0091 5700 mov X,<__idata_start
0093 550000 mov [__r0],<__data_start
0096 IDataLoop:
0096 3C0000 cmp [__r0],<__data_end
0099 A00B jz IDataDone
009B 08 push A
009C 28 romx
009D 3F00 mvi [__r0],A
009F 18 pop A
00A0 75 inc X
00A1 0900 adc A,0
00A3 8FF2 jmp IDataLoop
00A5 IDataDone:
00A5 7F ret
00A6
ENDIF ;(C_LANGUAGE_SUPPORT)
;-----------------------------------------------------------------------------
; RAM segments for C CONST, static & global items
;-----------------------------------------------------------------------------
AREA lit
0000 __lit_start:
0000
AREA idata
0000 __idata_start:
0000
AREA func_lit
0000 __func_lit_start:
0000
AREA psoc_config(ROM,REL,CON)
0000 __psoc_config_start:
0000
AREA UserModules(ROM,REL,CON)
0000 __usermodules_start:
0000
AREA gpio_isr(ROM,REL,CON)
0000 __gpio_isr_start:
0000
0000 ;---------------------------------------------
0000 ; CODE segment for general use
0000 ;---------------------------------------------
AREA text(ROM,REL,CON)
0000 __text_start:
0000
0000 ;---------------------------------------------
0000 ; Begin RAM area usage
0000 ;---------------------------------------------
AREA data (RAM, REL, CON) ; initialized RAM
0000 __data_start:
0000
AREA virtual_registers (RAM, REL, CON) ; Temp vars of C compiler
AREA InterruptRAM (RAM, REL, CON) ; Interrupts, on Page 0
AREA bss (RAM, REL, CON) ; general use
0000 __bss_start:
0000 ;-----------------------------------------------------------------------------
0000 ; End of the boot code
0000 ;-----------------------------------------------------------------------------
0000
0000 ;-----------------------------------------------------------------------------
0000 ; GPIO Interrupt Service Routines
0000 ;-----------------------------------------------------------------------------
AREA gpio_isr(ROM,REL,CON)
;-----------------------------------------------------------------------------
; FUNCTION NAME: INT0_ISR
;
; DESCRIPTION: This is the ISR for the the INT0 GPIO interrupt
;
;-----------------------------------------------------------------------------
0000 INT0_ISR:
0000 ;@PSoC_UserCode_BODY_1@ (Do not change this line.)
0000 ;---------------------------------------------------
0000 ; Insert your custom code below this banner
0000 ;---------------------------------------------------
0000 ; NOTE: interrupt service routines must preserve
0000 ; the values of the A and X CPU registers.
0000
0000 ;---------------------------------------------------
0000 ; Insert your custom code above this banner
0000 ;---------------------------------------------------
0000 ;@PSoC_UserCode_END@ (Do not change this line.)
0000 7E RETI
0001 ;-----------------------------------------------------------------------------
0001 ; FUNCTION NAME: INT1_ISR
0001 ;
0001 ; DESCRIPTION: This is the ISR for the the INT1 GPIO interrupt
0001 ;
0001 ;-----------------------------------------------------------------------------
0001 INT1_ISR:
0001 ;@PSoC_UserCode_BODY_2@ (Do not change this line.)
0001 ;---------------------------------------------------
0001 ; Insert your custom code below this banner
0001 ;---------------------------------------------------
0001 ; NOTE: interrupt service routines must preserve
0001 ; the values of the A and X CPU registers.
0001
0001 ;---------------------------------------------------
0001 ; Insert your custom code above this banner
0001 ;---------------------------------------------------
0001 ;@PSoC_UserCode_END@ (Do not change this line.)
0001 7E RETI
0002 ;-----------------------------------------------------------------------------
0002 ; FUNCTION NAME: INT2_ISR
0002 ;
0002 ; DESCRIPTION: This is the ISR for the the INT2 GPIO interrupt
0002 ;
0002 ;-----------------------------------------------------------------------------
0002 INT2_ISR:
0002 ;@PSoC_UserCode_BODY_3@ (Do not change this line.)
0002 ;---------------------------------------------------
0002 ; Insert your custom code below this banner
0002 ;---------------------------------------------------
0002 ; NOTE: interrupt service routines must preserve
0002 ; the values of the A and X CPU registers.
0002
0002 ;---------------------------------------------------
0002 ; Insert your custom code above this banner
0002 ;---------------------------------------------------
0002 ;@PSoC_UserCode_END@ (Do not change this line.)
0002 7E RETI
0003 ;-----------------------------------------------------------------------------
0003 ; FUNCTION NAME: PORT0_ISR
0003 ;
0003 ; DESCRIPTION: This is the ISR for the the PORT0 GPIO interrupt
0003 ; Note: Interrupts for GPIO P0.2, P0.3, and P0.4 are
0003 ; not dispatched through this ISR. Those interrupts
0003 ; are dipatched through INT0, INT1 and INT2 respectively.
0003 ;
0003 ;-----------------------------------------------------------------------------
0003 PORT0_ISR:
0003 ;@PSoC_UserCode_BODY_4@ (Do not change this line.)
0003 ;---------------------------------------------------
0003 ; Insert your custom code below this banner
0003 ;---------------------------------------------------
0003 ; NOTE: interrupt service routines must preserve
0003 ; the values of the A and X CPU registers.
0003
0003 ;---------------------------------------------------
0003 ; Insert your custom code above this banner
0003 ;---------------------------------------------------
0003 ;@PSoC_UserCode_END@ (Do not change this line.)
0003 7E RETI
0004 ;-----------------------------------------------------------------------------
0004 ; FUNCTION NAME: PORT1_ISR
0004 ;
0004 ; DESCRIPTION: This is the ISR for the the PORT1 GPIO interrupt
0004 ;
0004 ;-----------------------------------------------------------------------------
0004 PORT1_ISR:
0004 ;@PSoC_UserCode_BODY_5@ (Do not change this line.)
0004 ;---------------------------------------------------
0004 ; Insert your custom code below this banner
0004 ;---------------------------------------------------
0004 ; NOTE: interrupt service routines must preserve
0004 ; the values of the A and X CPU registers.
0004
0004 ;---------------------------------------------------
0004 ; Insert your custom code above this banner
0004 ;---------------------------------------------------
0004 ;@PSoC_UserCode_END@ (Do not change this line.)
0004 7E RETI
0005 ;-----------------------------------------------------------------------------
0005 ; FUNCTION NAME: PORT2_ISR
0005 ;
0005 ; DESCRIPTION: This is the ISR for the the PORT2 GPIO interrupt
0005 ;
0005 ;-----------------------------------------------------------------------------
0005 PORT2_ISR:
0005 ;@PSoC_UserCode_BODY_5@ (Do not change this line.)
0005 ;---------------------------------------------------
0005 ; Insert your custom code below this banner
0005 ;---------------------------------------------------
0005 ; NOTE: interrupt service routines must preserve
0005 ; the values of the A and X CPU registers.
0005
0005 ;---------------------------------------------------
0005 ; Insert your custom code above this banner
0005 ;---------------------------------------------------
0005 ;@PSoC_UserCode_END@ (Do not change this line.)
0005 7E RETI
0006 ;-----------------------------------------------------------------------------
0006 ; FUNCTION NAME: PORT3_ISR
0006 ;
0006 ; DESCRIPTION: This is the ISR for the the PORT3 GPIO interrupt
0006 ;
0006 ;-----------------------------------------------------------------------------
0006 PORT3_ISR:
0006 ;@PSoC_UserCode_BODY_6@ (Do not change this line.)
0006 ;---------------------------------------------------
0006 ; Insert your custom code below this banner
0006 ;---------------------------------------------------
0006 ; NOTE: interrupt service routines must preserve
0006 ; the values of the A and X CPU registers.
0006
0006 ;---------------------------------------------------
0006 ; Insert your custom code above this banner
0006 ;---------------------------------------------------
0006 ;@PSoC_UserCode_END@ (Do not change this line.)
0006 7E RETI
0007 ;-----------------------------------------------------------------------------
0007 ; End GPIO Interrupt Service Routines
0007 ;-----------------------------------------------------------------------------
0007 ;end of file
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -