daily pastebin goal
67%
SHARE
TWEET

Untitled

a guest Nov 30th, 2018 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ORG 0000h
  2.  
  3. MOV P1,#00h
  4. INICIO: JNB P3.2,BT1
  5.     JMP INICIO
  6.  
  7. BT1:    MOV P1,#00000001b
  8.     MOV A,#01h
  9.     CALL DELAY
  10.     MOV P1,#00h
  11.     MOV P1,#00000010b
  12.     MOV A,#01h
  13.     CALL DELAY
  14.     MOV P1,#00h
  15.     MOV P1,#00000100b
  16.     MOV A,#01h
  17.     CALL DELAY
  18.     MOV P1,#00h
  19.     MOV P1,#00001000b
  20.     MOV A,#01h
  21.     CALL DELAY
  22.     MOV P1,#00H
  23.     MOV P1,#00010000b
  24.     MOV A,#01h
  25.     CALL DELAY
  26.     MOV P1,#00h
  27.     MOV P1,#00100000b
  28.     MOV A,#01h
  29.     CALL DELAY
  30.     MOV P1,#00h
  31.     MOV P1,#01000000b
  32.     MOV A,#01h
  33.     CALL DELAY
  34.     MOV P1,#00h
  35.     MOV P1,#10000000b
  36.     MOV A,#01h
  37.     CALL DELAY
  38.     MOV P1,#00h
  39.     JMP BT1
  40.  
  41.  
  42. DELAY:  MOV R0,A
  43. VOLTA2: MOV R1,#250
  44. VOLTA1: MOV R2,#250
  45.     DJNZ R2,$
  46.     DJNZ R1,VOLTA1
  47.     DJNZ R0,VOLTA2
  48.     RET
  49. END
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top