Advertisement
Guest User

Untitled

a guest
Jun 30th, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mov     eax, 2          ; y
  2. mul     dword [max_x]   ; eax *= [max_x] <=> (y * max_x) <=> Select line of array
  3. add     eax, 5          ; (y * max_x) + x
  4.  
  5. mov     [array_2D + eax], dword 23
  6.  
  7. max_x       dd  5
  8.  
  9. array_2D:   dd  0, 0, 0, 0, 0
  10.             dd  0, 0, 0, 0, 0
  11.             dd  0, 0, 0, 0, 0
  12.             dd  0, 0, 0, 0, 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement