Skip to content

Instantly share code, notes, and snippets.

@mattwarren
Created January 21, 2015 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattwarren/c00c25443285d341597a to your computer and use it in GitHub Desktop.
Save mattwarren/c00c25443285d341597a to your computer and use it in GitHub Desktop.
Marker("foreach over an Array");
00000526 mov ecx,128533F8h
0000052b mov rcx,qword ptr [rcx]
0000052e call FFFFFFFFFFFFF668
118: foreach (var num in numsArray)
00000533 xor ebx,ebx
00000535 cmp dword ptr [rsi+8],0
00000539 jle 000000000000057D
0000053b movsxd rcx,ebx
0000053e mov r14d,dword ptr [rsi+rcx*4+10h]
119: {
120: Console.Write("{0}, ", num);
00000543 mov rcx,7FEF70A03F8h
0000054d call 000000005F672470
00000552 mov dword ptr [rax+8],r14d
00000556 mov r14,rax
00000559 call 000000005E5526B0
0000055e mov rcx,rax
00000561 mov edx,128533F0h
00000566 mov rdx,qword ptr [rdx]
00000569 mov r8,r14
0000056c mov rax,qword ptr [rax]
0000056f mov rax,qword ptr [rax+58h]
00000573 call qword ptr [rax+20h]
00000576 inc ebx
118: foreach (var num in numsArray)
00000578 cmp dword ptr [rsi+8],ebx
0000057b jg 000000000000053B
121: }
122: Console.WriteLine("");
0000057d call 000000005E5526B0
00000582 mov rcx,rax
00000585 mov edx,12853340h
0000058a mov rdx,qword ptr [rdx]
0000058d mov rax,qword ptr [rax]
00000590 mov rax,qword ptr [rax+68h]
00000594 call qword ptr [rax+20h]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment