



OK, lets look at this code again. I'll write some x86 assembly to do it. Not the best in the world, but we'll get an idea whats going on. Also I need to do this to help my memory. :)
int x1,x2,x3;
for (x1=1; x1<=20000; x1++) {
for(x2=1; x2<=20000; x2++) {
x3 = x1*x2;
}
}
Ok, lets do it the stupidest way possible in x86 NASM:
OK:
segment .data
segment .bss
segment .text
int x1,x2,x3;
for (x1=1; x1<=20000; x1++) {
for(x2=1; x2<=20000; x2++) {
x3 = x1*x2;
}
}
Ok, lets do it the stupidest way possible in x86 NASM:
OK:
segment .data
segment .bss
segment .text
No comments:
Post a Comment