Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please help with code. Have to be in Assembly 2015 x86 (.asm). and include Irvin

ID: 3708034 • Letter: P

Question

Please help with code. Have to be in Assembly 2015 x86 (.asm). and include Irvine32.inc. Please provide sample output of the code and the code have to be runnable. Thanks!

1. (8 points) Write a program that clears the screen and prompts the user to enter three signed integers Enter Signed Integer: Assign those values to val2, val3, and val4 vall, val2, val3 and val4 are 32-bit memory signed integers Pass those values to a subroutine that implements the following expression: - vall (val2 + val3) * (val4 / val2) + (val3 * 3) To access the values in the caller frame, use EBP (remember EBP is created at the callee side). The calculated expression result needs to be assigned to vall at the caller side. The calculated expression result needs to be displayed on console screen from main subroutine. - - Name the subroutine IntegerArithmeticProc When calling or creating the IntegerArithmeticProc subroutine, you are not allowed to use any of the following directives: invoke, addr, proc with lists, and proto or proto with lists Use the appropriate multiplication and division instructions Use the CBW, CWD, or CDQ instructions when needed. For (val3 * 3), you must use the instruction of the two operands format. Run your program using the debugger to verify your answers. - - Use Step Into instead of Step Over to keep track of the stack, ESP, EBP, EIP during debugging. "To access the stack memory, copy the value of ESP from the register window and past it in the search text box in the memory window

Explanation / Answer

START: ASSUME CS:CODE

MOV AX, 0600H; 06 TO SCROLL & 00 FOR FULLJ SCREEN

MOV BH,71H; ATTRIBUTE 7 FOR BACKGROUND AND 1 FOR FOREGROUND

MOV CX,000H; STARTING COORDINATES

MOV DX,184H; ENDING COORDINATES

INT 10H; FOR VIDEO DISPLAY

MOV AH,4CH; RETURN TO DOS MODE

INT 21H

CODE ENDS

END START

Prompt BYTE "enter a signed integer"

VAL 2,

VAL3,

VAL4

and for clear screen handle

CURSOR_MOVE event

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote