Có 1 anh viết code cho e như sau
---------------
.....
INT_VALUE EQU 082H ;T0
LED0 BIT P1.3
LED1 BIT P1.2
LED2 BIT P1.1
LED3 BIT P1.0
LRUN BIT P3.3
LPASS BIT P3.2
LCHANGE BIT P3.1
ALARM BIT P1.4
STACK EQU 50H ;Vung Stack dat o o nho 50H
;************************************************* ***********
DSEG AT 08H
COUNT_INT0: DS 1
COUNT_LED: DS 1 ;36H
BUFF_LED: DS 4
COUNT_KEY: DS 1
BUFF_KEY: DS 4
KEY: DS 4
COUNT_PRESS: DS 1
;************************************************* ***********
BSEG AT 0
PASS: DBIT 1
DISABLE: DBIT 1
----------------
....
.....
SELECT_LED:
DW SEL_LED0,SEL_LED1,SEL_LED2,SEL_LED3
..............
Vậy cho em hỏi AT,DS,DBIT và DW ý nghĩa như thế nào ạ ?
Em xin cảm ơn !
---------------
.....
INT_VALUE EQU 082H ;T0
LED0 BIT P1.3
LED1 BIT P1.2
LED2 BIT P1.1
LED3 BIT P1.0
LRUN BIT P3.3
LPASS BIT P3.2
LCHANGE BIT P3.1
ALARM BIT P1.4
STACK EQU 50H ;Vung Stack dat o o nho 50H
;************************************************* ***********
DSEG AT 08H
COUNT_INT0: DS 1
COUNT_LED: DS 1 ;36H
BUFF_LED: DS 4
COUNT_KEY: DS 1
BUFF_KEY: DS 4
KEY: DS 4
COUNT_PRESS: DS 1
;************************************************* ***********
BSEG AT 0
PASS: DBIT 1
DISABLE: DBIT 1
----------------
....
.....
SELECT_LED:
DW SEL_LED0,SEL_LED1,SEL_LED2,SEL_LED3
..............
Vậy cho em hỏi AT,DS,DBIT và DW ý nghĩa như thế nào ạ ?
Em xin cảm ơn !