;mấy pro giúp em xem cái nầy coi :
;phải sửa làm sao nó mới không báo lổi bây giờ
;em dich bằng asm51.exe (1986)
;code nầy em lấy trong tài liệu của hãng atmel mà
;
;
;
;
;
WDTCON DATA A7H ; watchdog control register
*** ERROR #18, LINE #1 (0), (PASS 2) UNDEFINED SYMBOL
2 WDTRST DATA A6H ; watchdog reset register
*** ERROR #18, LINE #2 (1), (PASS 2) UNDEFINED SYMBOL
0001 3 WDTEN EQU 00000001B ; watchdog timer enable bit
0002 4 WSWRST EQU 00000010B ; watchdog timer software reset bit
0004 5 HWDT EQU 00000100B ; watchdog timer hardware mode bit
0020 6 PS0 EQU 00100000B ; watchdog timer period select bits
0040 7 PS1 EQU 01000000B ;
0080 8 PS2 EQU 10000000B ;
0000 430020 9 orl WDTCON, #PS0 ; select 32-ms period at 12MHz
*** ERROR #18, LINE #9 (2), (PASS 2) UNDEFINED SYMBOL
0003 430001 10 orl WDTCON, #WDTEN; enable watchdog
*** ERROR #18, LINE #10 (9), (PASS 2) UNDEFINED SYMBOL
11 end
;phải sửa làm sao nó mới không báo lổi bây giờ
;em dich bằng asm51.exe (1986)
;code nầy em lấy trong tài liệu của hãng atmel mà
;
;
;
;
;
WDTCON DATA A7H ; watchdog control register
*** ERROR #18, LINE #1 (0), (PASS 2) UNDEFINED SYMBOL
2 WDTRST DATA A6H ; watchdog reset register
*** ERROR #18, LINE #2 (1), (PASS 2) UNDEFINED SYMBOL
0001 3 WDTEN EQU 00000001B ; watchdog timer enable bit
0002 4 WSWRST EQU 00000010B ; watchdog timer software reset bit
0004 5 HWDT EQU 00000100B ; watchdog timer hardware mode bit
0020 6 PS0 EQU 00100000B ; watchdog timer period select bits
0040 7 PS1 EQU 01000000B ;
0080 8 PS2 EQU 10000000B ;
0000 430020 9 orl WDTCON, #PS0 ; select 32-ms period at 12MHz
*** ERROR #18, LINE #9 (2), (PASS 2) UNDEFINED SYMBOL
0003 430001 10 orl WDTCON, #WDTEN; enable watchdog
*** ERROR #18, LINE #10 (9), (PASS 2) UNDEFINED SYMBOL
11 end
Comment