Which statement should you put at the end of your assembly c

Which statement should you put at the end of your assembly code in order to have your program end quickly? exit(0) ret 0 INVOKE exit, 0 ret mov eax, 0 Given the following MASM program what will be the second line output to the screen (ignore any blank lines). .386 .model flat, c .stack 100h printf PROTO arg1: Ptr Byte, printlist VARARG .data msg1fmt byte 0Ah, %s%d%s%d%s\", 0Ah, 0 msg2fmt byte 0Ah, %s%d\", 0Ah, 0Ah, 0 mag11 byte \"The first number is\", 0 msg12 byte, \"but the second number is\", 0 msg 13 byte, 0 msg2 byte \"while the third number is\", 0 num1 sdword 5 num2 sdword 7 num3 sdword 11 .code main proc INVOKE printf, ADDR msg1fmt, ADDR msg11, num1, ADDR msg12. num2, ADOR msg13 INVOKE printf, ADDR msg2fmt. ADDR msg2, num3 main ret main endp end _____

Solution

4- for faster exit we will use mov eas,0 as this act like a interrupt command and interrupts are always given higher priority than other statements.

 Which statement should you put at the end of your assembly code in order to have your program end quickly? exit(0) ret 0 INVOKE exit, 0 ret mov eax, 0 Given th

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site