Advertisement
Xetos

adsas

Mar 24th, 2016
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ARM 0.49 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,5 ; Meg a tomb
  10. .code
  11. ; Belépési pont
  12. main PROC
  13.  
  14.     MOV ESI, offset T
  15.     MOV ECX, N
  16.    
  17.  
  18.  
  19.     ciklus:
  20.         MOV EAX, [ESI]
  21.  
  22.         CMP EAX, 0
  23.         JL semmi
  24.         CMP EAX, 10
  25.         JG semmi
  26.             Call WriteInt
  27.             Call Crlf
  28.         semmi:
  29.  
  30.  
  31.         ADD ESI, 4
  32.         LOOP ciklus
  33.  
  34.     INVOKE  ExitProcess,0
  35. main ENDP
  36.  
  37. END main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement