:pushtebpOx401051 :šesp, sebp$0x8, sesp$0xfffffff0, tesp$0x0, šeaxmovOx401053 :subOx401056 :andOx401059 :movOx40105e :movšeax, Oxfffffffc (Sebp)Ox401061 :Oxfffffffc (šebp),...


Ox401050<br><main>:<br>push<br>tebp<br>Ox401051<br><main+1>:<br>šesp, sebp<br>$0x8, sesp<br>$0xfffffff0, tesp<br>$0x0, šeax<br>mov<br>Ox401053<br><main+3>:<br>sub<br>Ox401056<br><main+6>:<br>and<br>Ox401059<br><main+9>:<br>mov<br>Ox40105e<br><main+14>:<br>mov<br>šeax, Oxfffffffc (Sebp)<br>Ox401061<br><main+17>:<br>Oxfffffffc (šebp), šeax<br>mov<br>Ox401064<br><main+20>:<br>call<br>Ox4013a0 < alloca><br>Ox401069<br><main+25>:<br>call<br>Ox401430 <<br>main><br>Sox0, tedx<br>Ox40106e<br><main+30>:<br>mov<br>Ox401073<br><main+35>:<br>add<br>Ox8 (Sebp), sedx<br>Ox401076<br><main+38>:<br>mov<br>Sedx, šeax<br>Ox401078<br><main+40>:<br>leave<br>Ox401079<br><main+41>:<br>ret<br>Command line arguments are passed to int main(int argc, char** argv) as arguments<br>argc and argv. You should assume that argc is at ebp+8 and argv is at ebp+12.<br>This code returns the following value from main (in register eax):<br>1) product of the command line arguments<br>2) sum of the command line arguments<br>3) number of characters in the command line arguments<br>4) how many command line arguments were provided<br>

Extracted text: Ox401050
: push tebp Ox401051 : šesp, sebp $0x8, sesp $0xfffffff0, tesp $0x0, šeax mov Ox401053 : sub Ox401056 : and Ox401059 : mov Ox40105e : mov šeax, Oxfffffffc (Sebp) Ox401061 : Oxfffffffc (šebp), šeax mov Ox401064 : call Ox4013a0 < alloca=""> Ox401069 : call Ox401430 < main=""> Sox0, tedx Ox40106e : mov Ox401073 : add Ox8 (Sebp), sedx Ox401076 : mov Sedx, šeax Ox401078 : leave Ox401079 : ret Command line arguments are passed to int main(int argc, char** argv) as arguments argc and argv. You should assume that argc is at ebp+8 and argv is at ebp+12. This code returns the following value from main (in register eax): 1) product of the command line arguments 2) sum of the command line arguments 3) number of characters in the command line arguments 4) how many command line arguments were provided
Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here