|
Tài trợ cho PIC Vietnam |
MPASM Lập trình bằng hợp ngữ là một việc làm vô cùng vất vả, tuy nhiên, để hiểu và làm việc với vi điều khiển, hợp ngữ trở thành một công cụ khá đắc lực ... |
|
Ðiều Chỉnh | Xếp Bài |
27-01-2008, 10:25 AM | #1 |
Nhập môn đệ tử
Tham gia ngày: Oct 2007
Bài gửi: 9
: |
pasm
-các bác cho em hỏi mấy lỗi này
;======================= Clean: Deleting intermediary and output files. Clean: Deleted file "C:\Documents and Settings\Administrator\My Documents\time_in\P16F84.mcs". Clean: Done. Executing: "C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe" /q /p16F84 "EX1.asm" /l"EX1.lst" /e"EX1.err" Warning[205] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\MY DOCUMENTS\TIME_IN\EX1.ASM 1 : Found directive in column 1. (LIST) Warning[215] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\MY DOCUMENTS\TIME_IN\EX1.ASM 1 : Processor superseded by command line. Verify processor symbol. Message[302] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\MY DOCUMENTS\TIME_IN\EX1.ASM 5 : Register in operand not in bank 0. Ensure that bank bits are correct. Message[302] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\MY DOCUMENTS\TIME_IN\EX1.ASM 6 : Register in operand not in bank 0. Ensure that bank bits are correct. Warning[219] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\MY DOCUMENTS\TIME_IN\EX1.ASM 20 : Invalid RAM location specified. Message[302] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\MY DOCUMENTS\TIME_IN\EX1.ASM 20 : Register in operand not in bank 0. Ensure that bank bits are correct. Warning[205] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\MY DOCUMENTS\TIME_IN\EX1.ASM 24 : Found directive in column 1. (END) ;======> Error[173] C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\MY DOCUMENTS\TIME_IN\EX1.ASM 25 : Source file path exceeds 62 characters (C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\MY DOCUMENTS\TIME_IN\EX1.ASM) Halting build on first failure as requested. BUILD FAILED: Sun Jan 27 08:59:59 2008 Code:
;========================== Mong các bác chi gúp tết em còn nhai ;==================================== ;ex1 LIST P=P16F84 #INCLUDE "P16F84.INC" BSF STATUS,RP0 CLRW MOVWF TRISA MOVWF TRISB BCF STATUS,RP0 ;============================ LOOP MOVLW 0FFH MOVWF PORTA MOVWF PORTB CALL DELAY CLRW MOVWF PORTA MOVWF PORTB CALL DELAY GOTO LOOP DELAY DECFSZ D'255',1 DECFSZ D'100',1 GOTO DELAY RETURN END thay đổi nội dung bởi: falleaf, 27-01-2008 lúc 12:32 PM. |
|
|