Advertisement
Guest User

Untitled

a guest
Dec 13th, 2019
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     LJMP START
  2.     ORG 100H
  3.  
  4. START:
  5.     MOV 'T'+0,#'S'
  6.     MOV 'T'+1,#'u'
  7.     MOV 'T'+2,#'s'
  8.     MOV 'T'+3,#'l'
  9.     MOV 'T'+4,#'o'
  10.     MOV 'T'+5,#'.'
  11.  
  12.     CLR RS0
  13.     CLR RS1
  14.  
  15.     MOV R3,#6
  16.     MOV R0,#'T'
  17.     MOV R1,#'S'
  18.  
  19. XD:
  20.     MOV A,@R0
  21.     MOV @R1,A
  22.     INC R0
  23.     DEC R1
  24.     DJNZ R3,XD
  25.  
  26.     LJMP START
  27.  
  28.  
  29. ----------------------------------------------------
  30.  
  31.     LJMP START
  32.     ORG 100H
  33.  
  34. START:
  35.     MOV 'T'+0,#'S'
  36.     MOV 'T'+1,#'u'
  37.     MOV 'T'+2,#'s'
  38.     MOV 'T'+3,#'l'
  39.     MOV 'T'+4,#'o'
  40.     MOV 'T'+5,#'.'
  41.  
  42.     CLR RS0
  43.     CLR RS1
  44.  
  45.     MOV R3,#6
  46.     MOV R0,#'T'
  47.     MOV R1,#'S'
  48.  
  49. XD:
  50.     MOV A,@R0
  51.     MOV @R1,A
  52.     INC R0
  53.     DEC R1
  54.     DJNZ R3,XD
  55.  
  56.     MOV DPTR,#5FEEH
  57.     MOV R0,#'T'-6
  58.     MOV R1,#12
  59. XDD:
  60.     MOV A,@R0
  61.     MOVX    @DPTR,A
  62.     INC R0
  63.     INC DPTR
  64.     DJNZ    R1,XDD
  65.    
  66.     LJMP START
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement