digbuf.asm
来自「PSOC 电动自行车代码 器件采用CYPRESS新电动自行车器件CY8C245」· 汇编 代码 · 共 165 行
ASM
165 行
;;*****************************************************************************
;;*****************************************************************************
;; FILENAME: DigBuf.asm
;; Version: 1.3, Updated on 2006/05/15 at 14:58:43
;; Generated by PSoC Designer ver 4.4 b1884 : 14 Jan, 2007
;;
;; DESCRIPTION: DigitalBuffers User Module software implementation file
;; for the 22/24/27/28xxx PSoC family of devices
;;
;; NOTE: User Module APIs conform to the fastcall16 convention for marshalling
;; arguments and observe the associated "Registers are volatile" policy.
;; This means it is the caller's responsibility to preserve any values
;; in the X and A registers that are still needed after the API functions
;; returns. For Large Memory Model devices it is also the caller's
;; responsibility to perserve any value in the CUR_PP, IDX_PP, MVR_PP and
;; MVW_PP registers. Even though some of these registers may not be modified
;; now, there is no guarantee that will remain the case in future releases.
;;-----------------------------------------------------------------------------
;; Copyright (c) Cypress MicroSystems 2000-2003. All Rights Reserved.
;;*****************************************************************************
;;*****************************************************************************
include "m8c.inc"
include "memory.inc"
include "DigBuf.inc"
;-----------------------------------------------
; Global Symbols
;-----------------------------------------------
export DigBuf_EnableInt
export _DigBuf_EnableInt
export DigBuf_DisableInt
export _DigBuf_DisableInt
export DigBuf_Start
export _DigBuf_Start
export DigBuf_Stop
export _DigBuf_Stop
AREA bss (RAM,REL)
;-----------------------------------------------
; Constant Definitions
;-----------------------------------------------
;-----------------------------------------------
; Variable Allocation
;-----------------------------------------------
AREA UserModules (ROM, REL)
.SECTION
;-----------------------------------------------------------------------------
; FUNCTION NAME: DigBuf_EnableInt
;
; DESCRIPTION:
; Enables the DigBuf's interrupt by setting the interrupt enable mask bit
; associated with this User Module. This function has no effect until and
; unless the global interrupts are enabled (for example by using the
; macro M8C_EnableGInt).
;-----------------------------------------------------------------------------
;
; ARGUMENTS: None.
; RETURNS: Nothing.
; SIDE EFFECTS:
; The A and X registers may be modified by this or future implementations
; of this function. The same is true for all RAM page pointer registers in
; the Large Memory Model. When necessary, it is the calling function's
; responsibility to perserve their values across calls to fastcall16
; functions.
;
DigBuf_EnableInt:
_DigBuf_EnableInt:
RAM_PROLOGUE RAM_USE_CLASS_1
DigBuf_EnableInt_M
RAM_EPILOGUE RAM_USE_CLASS_1
ret
.ENDSECTION
.SECTION
;-----------------------------------------------------------------------------
; FUNCTION NAME: DigBuf_DisableInt
;
; DESCRIPTION:
; Disables the DigBuf's interrupt by clearing the interrupt enable mask bit
; associated with this User Module.
;-----------------------------------------------------------------------------
;
; ARGUMENTS: None.
; RETURNS: Nothing.
; SIDE EFFECTS:
; The A and X registers may be modified by this or future implementations
; of this function. The same is true for all RAM page pointer registers in
; the Large Memory Model. When necessary, it is the calling function's
; responsibility to perserve their values across calls to fastcall16
; functions.
;
DigBuf_DisableInt:
_DigBuf_DisableInt:
RAM_PROLOGUE RAM_USE_CLASS_1
DigBuf_DisableInt_M
RAM_EPILOGUE RAM_USE_CLASS_1
ret
.ENDSECTION
.SECTION
;-----------------------------------------------------------------------------
; FUNCTION NAME: DigBuf_Start
;
; DESCRIPTION:
; Starts the Digital Buffers within the block.
;-----------------------------------------------------------------------------
;
; ARGUMENTS: None
; RETURNS: Nothing
; SIDE EFFECTS:
; The A and X registers may be modified by this or future implementations
; of this function. The same is true for all RAM page pointer registers in
; the Large Memory Model. When necessary, it is the calling function's
; responsibility to perserve their values across calls to fastcall16
; functions.
;
DigBuf_Start:
_DigBuf_Start:
RAM_PROLOGUE RAM_USE_CLASS_1
DigBuf_Start_M
RAM_EPILOGUE RAM_USE_CLASS_1
ret
.ENDSECTION
.SECTION
;-----------------------------------------------------------------------------
; FUNCTION NAME: DigBuf_Stop
;
; DESCRIPTION:
; Stops the Digital Buffers within the block. The outputs are driven low.
;-----------------------------------------------------------------------------
;
; ARGUMENTS: None
; RETURNS: Nothing
; SIDE EFFECTS:
; The A and X registers may be modified by this or future implementations
; of this function. The same is true for all RAM page pointer registers in
; the Large Memory Model. When necessary, it is the calling function's
; responsibility to perserve their values across calls to fastcall16
; functions.
;
DigBuf_Stop:
_DigBuf_Stop:
RAM_PROLOGUE RAM_USE_CLASS_1
DigBuf_Stop_M
RAM_EPILOGUE RAM_USE_CLASS_1
ret
.ENDSECTION
; End of File DigBuf.asm
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?