forked from tjemg/cucu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
towards function calling with ret val
- Loading branch information
Showing
3 changed files
with
60 additions
and
28 deletions.
There are no files selected for viewing
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
int g_a; | ||
|
||
int main( int c0, int c1 ) { | ||
int func( int a ) { | ||
g_a = 1; | ||
} | ||
|
||
//int main( int c0, int c1, int c2, int c3 ) { | ||
int main( void ) { | ||
int a; | ||
int b; | ||
// a = 0x4f; | ||
// func(0x44); | ||
func(0x44); | ||
a = func(0x44); | ||
a = 1 + func(2+0x44); | ||
return 0; | ||
} | ||
|