Assembly to C Example

preview_player
Показать описание
Assembly to C example
Рекомендации по теме
Комментарии
Автор

This video is so much more helpful than my current professor. Thank you.

vi-anhnguyen
Автор

WOW. No need to check previous slides or anything. Understood everything. Great explanation sir. Hats

achinthawijewickrama
Автор

Fucking hell. 1 whole week of lecture about assembly and I didnt know shit. one 12 min video and I know assembly. I have a midterm one week from now. Glad I found this video

_saadhassan_
Автор

Thanks for the wonderful explanation Chris !! Your explanation was so crisp and easy to understand...

sreenivasachary
Автор

thank you for this video, helped me understand parsing through assembly to c very effectively. :)

devanshi
Автор

Thanks for this. This explained so much in just 12 mins! I could watch many videos of this exact thing, great way to learn.

jask
Автор

I never would have thought to use LEA to add two registers non-destructively like that. I'm so used to using it for pointers that I never thought about using it any other way!

williamdrum
Автор

after "CMP r1, r2" instruction, the next condition jump instruction imply how to treat the two operands "r1, r2", if it is "JG label", then the two operands are treated as signed integers is -1), if it is "JA label", then they are treated as unsigned integers. its correspond to c/c++ code: "if (r1 > r2) then jump to label". In C++ code, if you compare a signed integer with a unsigned integer, the compiler will compiled the code as two unsigned integers compare, and often gives you a warning, because it may lead to result that conflict with your expectation.

exlife
Автор

Im not in your class, but this was so so helpful! Thank you so much!!

mariacunha
Автор

thank you! very clear and straightforward, very helpful!

gracegao
Автор

Very clear and helpful. Thanks so much!!

zbera
Автор

wonder man thanks... do have another one please suggest me if you have another one

TigrayVirtualSoftwares
Автор

is there any software that convert assembly to c code?

vickysanth
Автор

Chris, you are amazing. Thanks for this video

paul_owen
Автор

int a[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
int n = 10;
int number = 7; // the number to search in the array
bool NOT_FOUND = true;
for (int i = 0; i < n-1; i++)
{
if (number == a[i])
{
printf("Number %d is found at location %d\n", number, i);
NOT_FOUND = false;
break;
}
}
if (NOT_FOUND == true)
printf("Number %d is not found in the array\n", number);
what is the assembly code ?

bestgunay
Автор

add al, 0F0h
jbe short loc_1B830




what about this one? Anyone explain

azartheen
Автор

Can I just send my tuition dollars to you instead?

Steven