Labels

[PIC]exchange between two file registers

; exchg.inc
; exchange the contents bettwen two file register


;move from file_register to file_register
_movff macro _movff_src, _movff_dst
movf _movff_src, w
movwf _movff_dst
endm


;exchange
_exchg macro _exchg_a, _exchg_b
_movff _exchg_a, tmp
_movff _exchg_b, _exchg_a
_movff tmp, _exchg_b
endm

No comments:

Post a Comment