write a i386-32 bits assembly program that makes in the data segment the reservation of a memory block for 4000 bytes in order to write the numbers from 1 to 1000 in a 32 bit representation. Secondly traverse the array in order to get the sum of all the elements in the array and print the result in the standard output. For traversing the array implement an indirect addressing mode. Concepts in practice: Arrays, Indirect Addressing versus Indexed Addressing. MUST BE IN NASM AND WORK FOR KALI LINUX MUST BE IN NASM AND WORK FOR KALI LINUX MUST BE IN NASM AND WORK FOR KALI LINUX MUST BE IN N

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter11: Operating Systems
Section: Chapter Questions
Problem 30VE
icon
Related questions
Question
100%
write a i386-32 bits assembly program that makes in the data segment the reservation of a memory block for 4000 bytes in order to write the numbers from 1 to 1000 in a 32 bit representation. Secondly traverse the array in order to get the sum of all the elements in the array and print the result in the standard output. For traversing the array implement an indirect addressing mode. Concepts in practice: Arrays, Indirect Addressing versus Indexed Addressing. MUST BE IN NASM AND WORK FOR KALI LINUX MUST BE IN NASM AND WORK FOR KALI LINUX MUST BE IN NASM AND WORK FOR KALI LINUX MUST BE IN NASM AND WORK FOR KALI LINUX MUST BE IN NASM AND WORK FOR KALI LINUX CORRECT WAY TO WRITE ASSEMBLY NASM ; Hello World program in assembly x86-32 with a particular format section .text global _start ; must be declared for linker (ld) _start: ; tell linker entry point mov edx,len ; message length mov ecx, msg1 ; message to write mov ebx,1 ; file descriptor (stdout) mov eax,4 ; system call number (sys_write) int 0x80 ; call kernel mov eax,1 ; system call number (sys_exit) int 0x80 ; call kernel section .data msg1: db '******************',0xa,'* Hello World ! *',0xa,'******************',0xa ; The message len equ $ - msg1 ; length of message MUST USE ALL OF THE ABOVE AND BE A COPYABLE CODE DO NOT WANT MESSY HANDWRITING WILL THUMBS UP Concepts in practice: Arrays, Indirect Addressing versus Indexed Addressing.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Registers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning