Last active
          March 26, 2019 14:02 
        
      - 
      
- 
        Save Bigtalljosh/75f73c4e97eebb338080870042bf0a46 to your computer and use it in GitHub Desktop. 
Revisions
- 
        Bigtalljosh revised this gist Mar 26, 2019 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,12 @@ int square(int num); int main(int argc, const char* argv[]) { int result = square(10); } int square(int num) { return num * num; } 
- 
        Bigtalljosh revised this gist Jan 29, 2017 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,6 @@ int main( int argc, const char* argv[] ) int result = square(10); } int square(int num) { return num * num; } 
- 
        Bigtalljosh created this gist Nov 14, 2016 .There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,34 @@ int square(int num); int main( int argc, const char* argv[] ) { int result = square(10); } // Type your code here, or load an example. int square(int num) { return num * num; } main: push rbp mov rbp, rsp sub rsp, 32 mov DWORD PTR [rbp-20], edi mov QWORD PTR [rbp-32], rsi mov edi, 10 call square(int) mov DWORD PTR [rbp-4], eax mov eax, 0 leave ret square(int): push rbp mov rbp, rsp mov DWORD PTR [rbp-4], edi mov eax, DWORD PTR [rbp-4] imul eax, DWORD PTR [rbp-4] pop rbp ret