السلام عليكم
انا عضو جديد معكم في هذا المنتدى الرائع واحب اشكر القائمين عليه على الجهد المبذول والله يعطيكم الف عافيه
اخوني في الله انا ماعندي خلفيه عن هذه اللغه و لدي برنامج مكتوب واريد شرحا لكل الاوامر المدرجه به و فائدتها
واتمنى انه يكون بالعربي
وهذا هو الامج
;File DEMO.ASM ;Assembly code for PIC16F84 microcontroller ;Blinks LED's on the outputs in a rotating pattern ;With 75khz osc, each LED stays on half a second ;CPU configuration ;(its a 16F84,RC Oscillator, watchdog timer off, power-up timer on) processor 16f84 include <p16f84.inc. _config _RC_OSC &_WDT_OFF &_PWRITE_ON ;Declare variables at 2 memory locations J equ H'1F';J=Address hex 1F K equ H'1E';K=Address hex 1E Program ORG 0 ;start at address 0 ;Set port B as output and initialize it movlw B'00000000';w : =00000000 binary tris PORTB ;port B ctrl register := w movlw B'00000001';w := 00000001 binary movwf PORTB ;port B itself := w ;Rotate the bits of port B leftward mloop rlf PORTB,f ;Waste some time by executing nested loops movlw D'50' ;w := 50 decimal movwf J ;J :=w jloop: movwf K ;K :=w kloop: decfsz J,f ;J = J -1, skip next if zero goto kloop decsz J,f ;J = J - 1, skip next if zero goto jloop ;Do it all again goto mloop end
ياريت بأسرع وقت جزاكم الله خير
واكون شاكر لكم

