Skip to content

Instantly share code, notes, and snippets.

@mattwarren
Created January 21, 2015 20:45
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/2683eb5ae98f00a3813a to your computer and use it in GitHub Desktop.
Save mattwarren/2683eb5ae98f00a3813a to your computer and use it in GitHub Desktop.
Marker("for loop (hand-written)");
000004b2 mov ecx,128533E8h
000004b7 mov rcx,qword ptr [rcx]
000004ba call FFFFFFFFFFFFF668
111: for (int i = 0; i < 10; i++)
000004bf xor ebx,ebx
112: {
113: Console.Write("{0}, ", numsArray[i]);
000004c1 mov rcx,7FEF70A03F8h
000004cb call 000000005F672470
000004d0 mov edx,dword ptr [rsi+8]
000004d3 cmp ebx,edx
000004d5 jae 000000000000072F
000004db movsxd rdx,ebx
000004de mov edx,dword ptr [rsi+rdx*4+10h]
000004e2 mov dword ptr [rax+8],edx
000004e5 mov r14,rax
000004e8 call 000000005E5526B0
000004ed mov rcx,rax
000004f0 mov edx,128533F0h
000004f5 mov rdx,qword ptr [rdx]
000004f8 mov r8,r14
000004fb mov rax,qword ptr [rax]
000004fe mov rax,qword ptr [rax+58h]
00000502 call qword ptr [rax+20h]
111: for (int i = 0; i < 10; i++)
00000505 inc ebx
00000507 cmp ebx,0Ah
0000050a jl 00000000000004C1
114: }
115: Console.WriteLine("");
0000050c call 000000005E5526B0
00000511 mov rcx,rax
00000514 mov edx,12853340h
00000519 mov rdx,qword ptr [rdx]
0000051c mov rax,qword ptr [rax]
0000051f mov rax,qword ptr [rax+68h]
00000523 call qword ptr [rax+20h]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment