Question: This Assembly Project will allow us to take user input. So far we've used the . text and . data sections in our programs. We
This Assembly Project will allow us to take user input. So far we've used the text and data sections in our programs. We will now use the bss Block Started by Symbol It allows us to reserve space in memory for uninitialized variables. We will need these to store the user input. We have several options for the size: resb byte resw word bits or bytes resd double word bytes resq quad word bytes, also used for floats rest bytes, also used for extended floats In order to get user input, we will need to use a system call. So far, we have used two system calls: eax system call exit sys exit eax system call write syswrite For this lab, we will add: eax system call read sysread System calls take arguments we need to load three registers with values besides the register EAX. For sysread, we need: edx loaded with the max bytes of space in memory ecx loaded with the address of our variable in the bss section ebx loaded with the location we want to read from in our casesthiN standard input keyboard
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
