asm yi derleyemedim yardımcı olurmusunuz

Başlatan nuraykırcı, 28 Nisan 2011, 17:31:14

nuraykırcı

;====etiketleme makinası nuray.kırcı 2011====
             LIST   P=16F84A
                #include "P16F84A.INC"
SAYAC1          EQU    h'0C'
SAYAC2          EQU    h'0D'
SAYAC3          EQU    h'0E'
             CLRF   PORTB       ;PORT B Yİ SIFIRLA
             BSF    STATUS,5      ;BANK 1 E GEÇ
             CLRF   TRISA      ;PORT A CIKIS
             MOVLW  H'FF'      ;W YA 11111111 İ YÜKLE
             MOVWF  TRISB      ;PORT B GİRİŞ
             BCF    STATUS,5      ;BANK 0 A GEÇ
BASLA
                BTFSC  PORTB,0      ;PORT B NİN 0 INCI BİTİNİ TEST ET 0 SA ATLA
             GOTO   BASLA
             CLRF   PORTA       ;PORT A YI SİL
             
TEST SENSOR
      BTFSC  PORTB,1      ;YATAY PISTON
      GOTO   ALARM
      BTFSC  PORTB,4      ;DIKEY PISTON
      GOTO   ALARM
      BTFSC  PORTB,6       ;SON PISTON
      GOTO   ALARM
      CLRF   PORTA      ;PORTA YI SİL
      NOP
      BSF    PORTA,1      ;YATAY KOLU GERİYE CEK CEK
PISTON1B TEST
      BTFSC  PORTB,2
      GOTO   PİSTON1B TEST
      CALL   GECIKME1
      MOVLW  H'06'
      MOVWF  PORTA      ;YATAY KOL CEKİLİ DİKEY KOLU İNDİR ETİKETİ BAS
PISTON2A TEST
      BTFSC  PORTB,3      ;2. PISTON BASTIMI
      GOTO   PİSTON2A TEST
      CALL   GECIKME1    ;2. PISTON BASTIYSA GECIKME YAP
      MOVLW  H'02'
      MOVWF  PORTA      ;2. PISTONU KALDIR
      CALL   GECIKME1    ;GECİKME YAP
PISTON2B TEST      
      BTFSC  PORTB,4      ;2. PISTONU TEST ET YUKARIDA İSE ATLA
      GOTO   PISTON2B TEST
      CLRF   PORTA      ;YATAY KOLU İLERİYE İT
PISTON1A TEST      
      BTFSC  PORTB,1
      GOTO   PISTON1A TEST
      BSF    PORTA,3
PISTON3A TEST
      BTFSC  PORTB,5
      GOTO   PISTON3A TEST
      CLRF   PORTA
PISTON3B TEST
      BTFSC  PORTB,6
      GOTO   PISTON3B TEST
      CALL   GECIKME2
      NOP
      GOTO   BASLA
GECIKME1
      MOVLW  H'37'
      MOVWF  SAYAC1
DONGU1
      MOVLW  H'37'
      MOVWF  SAYAC2
DONGU2
      MOVLW  H'37'
      MOVWF  SAYAC3
DONGU3
      DECFSZ SAYAC3,F
      GOTO   DONGU3
      DECFSZ SAYAC2,F
      GOTO   DONGU2
      DECFSZ SAYAC1,F
      GOTO   DONGU1
      RETURN
GECIKME2
      MOVLW  H'10'
      MOVWF  SAYAC1
DONGU1
      MOVLW  H'90'
      MOVWF  SAYAC2
DONGU2
      MOVLW  H'90'
      MOVWF  SAYAC3
DONGU3
      DECFSZ SAYAC3,F
      GOTO   DONGU3
      DECFSZ SAYAC2,F
      GOTO   DONGU2
      DECFSZ SAYAC1,F
      GOTO   DONGU1
      RETURN
ALARM
      BSF    PORTA,0
      GOTO   TEST SENSOR
      END



her seferinde hata msj alıyorum ve internetten indidigim kodları da derleyemedim benim bilgisayarda bi hata var sanırım bunun hex dosyasını bana gonderebilirseniz sevinirim kendi yazdigim bir programdir

kudretuzuner

Merhaba
16F628 ile derledim buyrun 
           LIST   P=16F628
                INCLUDE "P16F628.INC"
SAYAC1          EQU    H'20'
SAYAC2          EQU    H'21'
SAYAC3          EQU    H'22'
;***********************************
SAYAC4          EQU    H'23';İLAVE ETTİM
;****************************************************************************
             CLRF   PORTB       ;PORT B Yİ SIFIRLA
             BSF    STATUS,5      ;BANK 1 E GEÇ
             CLRF   TRISA      ;PORT A CIKIS
             MOVLW  H'FF'      ;W YA 11111111 İ YÜKLE
             MOVWF  TRISB      ;PORT B GİRİŞ
             BCF    STATUS,5      ;BANK 0 A GEÇ
BASLA
                BTFSC  PORTB,0      ;PORT B NİN 0 INCI BİTİNİ TEST ET 0 SA ATLA
             GOTO   BASLA
             CLRF   PORTA       ;PORT A YI SİL
             
TEST_SENSOR
      BTFSC  PORTB,1      ;YATAY PISTON
      GOTO   ALARM
      BTFSC  PORTB,4      ;DIKEY PISTON
      GOTO   ALARM
      BTFSC  PORTB,6       ;SON PISTON
      GOTO   ALARM
      CLRF   PORTA      ;PORTA YI SİL
      NOP
      BSF    PORTA,1      ;YATAY KOLU GERİYE CEK CEK
PISTON1B_TEST
      BTFSC  PORTB,2
      GOTO   PISTON1B_TEST
      CALL   GECIKME1
      MOVLW  H'06'
      MOVWF  PORTA      ;YATAY KOL CEKİLİ DİKEY KOLU İNDİR ETİKETİ BAS
PISTON2A_TEST
      BTFSC  PORTB,3      ;2. PISTON BASTIMI
      GOTO   PISTON2A_TEST
      CALL   GECIKME1    ;2. PISTON BASTIYSA GECIKME YAP
      MOVLW  H'02'
      MOVWF  PORTA      ;2. PISTONU KALDIR
      CALL   GECIKME1    ;GECİKME YAP
PISTON2B_TEST     
      BTFSC  PORTB,4      ;2. PISTONU TEST ET YUKARIDA İSE ATLA
      GOTO   PISTON2B_TEST
      CLRF   PORTA      ;YATAY KOLU İLERİYE İT
PISTON1A_TEST     
      BTFSC  PORTB,1
      GOTO   PISTON1A_TEST
      BSF    PORTA,3
PISTON3A_TEST
      BTFSC  PORTB,5
      GOTO   PISTON3A_TEST
      CLRF   PORTA
PISTON3B_TEST
      BTFSC  PORTB,6
      GOTO   PISTON3B_TEST
      CALL   GECIKME2
      NOP
      GOTO   BASLA


;--------------------
GECIKME1
;-------------------
MOVLW H'FF'
MOVWF SAYAC1
DONGU1
MOVLW H'FF'
MOVWF SAYAC2
DONGU2
DECFSZ SAYAC2,F
GOTO DONGU2
DECFSZ SAYAC1,F
GOTO DONGU1
RETURN





;     MOVLW  H'37'
;     MOVWF  SAYAC1
;DONGU1
;     MOVLW  H'37'
;     MOVWF  SAYAC2
;DONGU2
  ;    MOVLW  H'37'
;     MOVWF  SAYAC3
;DONGU3
;      DECFSZ SAYAC3,F
;      GOTO   DONGU3
;      DECFSZ SAYAC2,F
;      GOTO   DONGU2
;      DECFSZ SAYAC1,F
;      GOTO   DONGU1
;      RETURN
;-------------------------
GECIKME2

MOVLW H'FF'
MOVWF SAYAC3
DONGU3
MOVLW H'FF'
MOVWF SAYAC4
DONGU4
DECFSZ SAYAC4,F
GOTO DONGU4
DECFSZ SAYAC3,F
GOTO DONGU3
RETURN








;----------------------
  ;    MOVLW  H'10'
;     MOVWF  SAYAC1
;DONGU1
;     MOVLW  H'90'
;     MOVWF  SAYAC2
;DONGU2
;      MOVLW  H'90'
;      MOVWF  SAYAC3
;DONGU3
;      DECFSZ SAYAC3,F
;      GOTO   DONGU3
;      DECFSZ SAYAC2,F
;      GOTO   DONGU2
;      DECFSZ SAYAC1,F
;      GOTO   DONGU1
;      RETURN
;------------------------





ALARM
      BSF    PORTA,0
      GOTO   TEST_SENSOR
      END
;****************


;BEKLE1

****************
;BEKLE2

***********************

----------------------------------------------------------------------
Release build of project `G:\nuraykrc.disposable_mcp' started.
Language tool versions: MPASMWIN.exe v5.39, mplink.exe v4.38, mplib.exe v4.38
Thu Apr 28 19:19:07 2011
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPASMWIN.exe" /q /p18F452 "nuraykrc.asm" /l"nuraykrc.lst" /e"nuraykrc.err"
Warning[215] G:\NURAYKRC.ASM 1 : Processor superseded by command line.  Verify processor symbol.
Message[301] C:\PROGRAM FILES\MICROCHIP\MPASM SUITE\P16F628.INC 33 : MESSAGE: (Processor-header file mismatch.  Verify selected processor.)
Warning[203] G:\NURAYKRC.ASM 66 : Found opcode in column 1. (MOVLW)
Warning[203] G:\NURAYKRC.ASM 67 : Found opcode in column 1. (MOVWF)
Warning[203] G:\NURAYKRC.ASM 69 : Found opcode in column 1. (MOVLW)
Warning[203] G:\NURAYKRC.ASM 70 : Found opcode in column 1. (MOVWF)
Warning[203] G:\NURAYKRC.ASM 72 : Found opcode in column 1. (DECFSZ)
Warning[203] G:\NURAYKRC.ASM 73 : Found opcode in column 1. (GOTO)
Warning[203] G:\NURAYKRC.ASM 74 : Found opcode in column 1. (DECFSZ)
Warning[203] G:\NURAYKRC.ASM 75 : Found opcode in column 1. (GOTO)
Warning[203] G:\NURAYKRC.ASM 76 : Found opcode in column 1. (RETURN)
Warning[203] G:\NURAYKRC.ASM 101 : Found opcode in column 1. (MOVLW)
Warning[203] G:\NURAYKRC.ASM 102 : Found opcode in column 1. (MOVWF)
Warning[203] G:\NURAYKRC.ASM 104 : Found opcode in column 1. (MOVLW)
Warning[203] G:\NURAYKRC.ASM 105 : Found opcode in column 1. (MOVWF)
Warning[203] G:\NURAYKRC.ASM 107 : Found opcode in column 1. (DECFSZ)
Warning[203] G:\NURAYKRC.ASM 108 : Found opcode in column 1. (GOTO)
Warning[203] G:\NURAYKRC.ASM 109 : Found opcode in column 1. (DECFSZ)
Warning[203] G:\NURAYKRC.ASM 110 : Found opcode in column 1. (GOTO)
Warning[203] G:\NURAYKRC.ASM 111 : Found opcode in column 1. (RETURN)
Executing: "C:\Program Files\Microchip\MPASM Suite\mplink.exe" /p18F452 "nuraykrc.o" /z__MPLAB_BUILD=1 /o"nuraykrc.cof" /M"nuraykrc.map" /W /x
MPLINK 4.38, Linker
Copyright (c) 1998-2010 Microchip Technology Inc.
Errors    : 0

Loaded G:\nuraykrc.cof.
----------------------------------------------------------------------
Release build of project `G:\nuraykrc.disposable_mcp' succeeded.
Language tool versions: MPASMWIN.exe v5.39, mplink.exe v4.38, mplib.exe v4.38
Thu Apr 28 19:19:10 2011
----------------------------------------------------------------------
BUILD SUCCEEDED
Amatör