Advertisement
Xetos

Assembly

Mar 24th, 2016
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ARM 0.45 KB | None | 0 0
  1. TITLE Hello, Assembly! (32 bites)
  2. INCLUDE Irvine32.inc
  3.  
  4. .data
  5.     HelloTxt    BYTE    "He.....225+*/*/llo, Assembly!", 0ah, 0
  6.     A           DWORD   5
  7.  
  8.  
  9.     T           SDWORD  1,2,-56,1956
  10. .code
  11. ; Belépési pont
  12. main PROC
  13.     MOV ESI, offset T
  14.     MOV ECX, N
  15.     MOV EBX, 0
  16.  
  17.  
  18.     ciklus:
  19.         MOV EAX, [ESI]
  20.         CMP EAX, 0
  21.         JL semmi
  22.             ADD EBX, EAX
  23.         semmi:
  24.  
  25.         ADD ESI, 4
  26.         LOOP ciklus
  27.  
  28.     MOVE EAX, EBX
  29.     Call WriteInt
  30.     Call Crlf
  31.  
  32.  
  33.     INVOKE  ExitProcess,0
  34. main ENDP
  35.  
  36. END main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement