Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Compile and Execute Assembly Online

section.data:
array db 01,02,03,04
narray times 4 db 0
menue db '....MENUE.....',0AH
      db 10,'1'
      db 10,'2'
      db 10,'3.exit'
      db 10,'enter choice'
      menuelen equ $-menue
      src db 10
      srclen equ $-src
      dst db 10
      dstlen equ $-dst
      colon db ':'
      mov eax,1
      mov ebx,0
      int 80H
section.bss:
choice resb 2
dispbuff resb 8
dispbuff1 resb 2
section.text:
gobal_start:
_start:
disp src,srclen
disp menue,menuelen
accept choice,2
cmp byte[choice],31H
je opt1
cmp byte[choice],32H
je opt2
opt1:disp dst,dstlen
 up: mov esi,array
     mov edi,array
     mov ecx,4
     mov al,[esi]
     mov [edi],al
     inc esi
     inc edi
     loop up
     mov esi,array
     mov ecx,8
up_1 :mov ebx,esi
      call display8
      disp colon,1
      mov bl,[rsi]
      call display 2
      inc rsi
      loop up_1
      jmp menue
opt2:disp dst,dstlen
     mov rsi,array
     mov rdi,array
     mov ecx,4
     CLD
     rep movsb
     jmp menue
     display 8:ret
     display 2:ret
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
      
      
      
      
      
     
     
     
     
     
     
     
     
     
     
     
     
     




















      

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.