W rite an assembly program for the processor family x86-32 that reads three signed interger numbers from the standard input and writes the greatest of them on the console. Use the C functions scanf...


I need help with this question prompt. I use kali-linux for this. What am I missing here?


W rite an assembly program for the processor family x86-32 that reads three signed interger numbers from the standard input and writes<br>the greatest of them on the console. Use the C functions scanf and printf for the management of data input and data output.<br>Concepts in practice: Data Transfer, Input-Output Management and Conditional Jumps.<br>

Extracted text: W rite an assembly program for the processor family x86-32 that reads three signed interger numbers from the standard input and writes the greatest of them on the console. Use the C functions scanf and printf for the management of data input and data output. Concepts in practice: Data Transfer, Input-Output Management and Conditional Jumps.
1 ;Get the largest number among the numbers num1, num2 and num3 represented as signed integer numbers.<br>2 ;Todo: change jg by ja to see the results.<br>3 ;Todo: As homework read the three numbers from the standard input a show the greatest one.<br>4<br>5<br>6 section .data<br>7<br>msg db

Extracted text: 1 ;Get the largest number among the numbers num1, num2 and num3 represented as signed integer numbers. 2 ;Todo: change jg by ja to see the results. 3 ;Todo: As homework read the three numbers from the standard input a show the greatest one. 4 5 6 section .data 7 msg db "The largest number is: %d", Oxa,0 v1 equ -47 v2 equ 32 v3 equ 21 8. 9 10 11 12 numl times 4 db 0 num2 times 4 db 0 num3 times 4 db 0 13 14 15 16 17 18 section .text extern printf global main 19 20 ;must be declared for using gcc 21 22 main: 23 | 24 ;tell linker entry point mov dword [numl], v1 mov dword [num2], v2 mov dword [num3], v3 25 26 27 28 mov есх, [num1] есх, [num2] check third num 29 cmp jg 30 31 есх, [num2] mov 32 33 check_third_num: 34 есх, [num3] exit 35 cmp jg mov 36 37 есх, [num3] 38 39 _exit: 40 ;Print the greatest number push ecx push msg call printf 41 42 43 44 45 ;Exit process eax, 1 80h 46 47 mov 48 int 49 50

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here