|
AVR:
-----
.equ D_DEVICE_C =0x12
;
.dseg
.org 0x60
DEVICE_C: .byte1
TEMPW: .byte 1
W: .byte 1
;
;
.cseglds R16,DEVICE_C
sts TEMPW,R16
ldi R16,D_DEVICE_C
sts W,R16\\\\\\\\\\\\\\\\\\\
PIC:
;=====================
;
D_DEVICE_C EQU 0x12
;-----------------
CBLOCK 0x20
;
DEVICE_C
TEMPW
W_REG
;
ENDC
;-------------------
movf DEVICE_C,w
movwf TEMPW
movlw D_DEVICE_C
movwf W_REG
E-mail: info@telesys.ru