; Generated by PSoC Designer ver 4.1 b931 : 21 January, 2004 ; ;;***************************************************************************** ;;***************************************************************************** ;; FILENAME: PSoCGPIOINT.asm ;; Version: 2.0.0.20, Updated on 2003/07/17 at 12:10:35 ;; @PSOC_VERSION ;; ;; DESCRIPTION: PSoC GPIO Interrupt Service Routine ;;----------------------------------------------------------------------------- ;; Copyright (c) Cypress MicroSystems 2000-2003. All Rights Reserved. ;;***************************************************************************** ;;***************************************************************************** include "m8c.inc" include "PSoCGPIOINT.inc" ;----------------------------------------------- ; Global Symbols ;----------------------------------------------- export PSoC_GPIO_ISR ;----------------------------------------------- ; Constant Definitions ;----------------------------------------------- ;----------------------------------------------- ; Variable Allocation ;----------------------------------------------- ;@PSoC_UserCode_INIT@ (Do not change this line.) ;--------------------------------------------------- ; Insert your custom declarations below this banner ;--------------------------------------------------- AREA bss gpio_isr_tmp: blk 1 AREA text export _gpio_isr_redirector ;--------------------------------------------------- ; Insert your custom declarations above this banner ;--------------------------------------------------- ;@PSoC_UserCode_END@ (Do not change this line.) ;----------------------------------------------------------------------------- ; FUNCTION NAME: PSoC_GPIO_ISR ; ; DESCRIPTION: Unless modified, this implements only a null handler stub. ; ;----------------------------------------------------------------------------- ; PSoC_GPIO_ISR: ;@PSoC_UserCode_BODY@ (Do not change this line.) ;--------------------------------------------------- ; Insert your custom code below this banner ;--------------------------------------------------- push A ljmp lcall _isr_gpio pop A reti _gpio_isr_redirector: mov [gpio_isr_tmp], A mov A, 0 ; push zero for fake flags push A mov A, [gpio_isr_tmp] ; get isr vector and put on stack romx push A mov A, [gpio_isr_tmp] inc X adc A, 0 romx push A ret ; jump to isr handler via ret ;--------------------------------------------------- ; Insert your custom code above this banner ;--------------------------------------------------- ;@PSoC_UserCode_END@ (Do not change this line.) reti ; end of file PSoCGPIOINT.asm