34 lines
634 B
NASM
34 lines
634 B
NASM
;//###########################################################################
|
|
;//
|
|
;// FILE: F2838xD_TestAndSet.asm
|
|
;//
|
|
;// Titov L.A.
|
|
;//
|
|
;//
|
|
;//###########################################################################
|
|
|
|
;D
|
|
|
|
.text
|
|
.global _clear_bit
|
|
.global _clear_bit_1
|
|
|
|
|
|
;Input: volatile uint16_t * - AR4 (on low 16 bit address space)
|
|
;Output: void
|
|
|
|
_clear_bit:
|
|
TCLR *AR4,#0 ;Clear specified bit, read-modify-write operation.
|
|
LRETR
|
|
|
|
;Input: volatile uint16_t * - AR4 (on low 16 bit address space)
|
|
;Output: void
|
|
|
|
_clear_bit_1:
|
|
TCLR *AR4,#1 ;Clear specified bit, read-modify-write operation.
|
|
LRETR
|
|
|
|
;//
|
|
;// End of file.
|
|
;//
|