Mình post 2 đoạn code có lỗi đây:
+ Cái này cho lỗi thứ 2:
Code:
PROCESSOR PIC16f877A
include <p16f877A.inc>
__CONFIG _CP_OFF & _CPD_OFF & _BODEN_OFF & _WDT_OFF & _PWRTE_ON & _XT_OSC &_WRT_OFF &_LVP_OFF
;---------------------------------------------------------------------------
count1 equ 0x20
counta equ 0x21
countb equ 0x22
;---------------------------------------------------------------------------
ORG 0
GOTO start
;---------------------------------------------------------------------------
start
;-------------------------------------------------------------------------
+ Đây là lỗi thứ 1:
Code:
PROCESSOR PIC16f877A ; list directive to define processor
include <p16f877A.inc> ; processor specific variable definitions
__CONFIG _CP_OFF & _CPD_OFF & _BODEN_OFF & _WDT_OFF & _PWRTE_ON & _XT_OSC &_WRT_OFF &_LVP_OFF
;---------------------------------------------------------------------------
ORG 0X000
GOTO start
;--------------------------------------------------------------------------
count2 res 1
count1 res 1
counta res 1
countb res 1
;--------------------------------------------------------------------------
start