Question: Machine code, asm Tasks Use the skeleton assembly file and the driver C file as starting points to write a program that meets the following

 Machine code, asm Tasks Use the skeleton assembly file and the
driver C file as starting points to write a program that meetsMachine code, asm

Tasks Use the skeleton assembly file and the driver C file as starting points to write a program that meets the following requirements 1. The program prompts the user to enter in a umber. This mumber indicates how many records the user will enter. 2. The program prompts the user to enter vales for each element of the record. It repeats this process for the mumber of records the user entened in the previous item 3. When the user has entered all of the records, the peogram prints out the data for all of the records The record (a struct) will consist of the llowing generated (hint: you can just use a counter long (including the null character) 1 recordID (unsigned int) used to uniquely identify each rcord. This value should be intemally 2. firstName (string) - The first name for a person. This feld will not be more than 25 characters 3. last Name (string) -same as above, just the lastame . groupID (unsigned byte) - every person will be assigned to one of four groups. Each group is identiied by a uniqae number (1 4) As you read in people, assign them to a group (first person to group 1, second to group two, ifth person to group 1, sixth person to group two, 5.rodPtr (pointer) this will point to the neat record (a linked list-oh m Your program should complete the work via the Sollowing organization Do not do all of the work in asn.zain. You will use several subpeograms to get the job done 1. asm.main will prompt for how many records to read in, then call a subprogram, passing the number of records as a parameter, to read in the user's input Fall 2018 page 1 of 4 CPSC 232 93813 nt roduction to Assembler Programming 2. The subprogram will loop the number of times given by the input parameter, it allocates enough space for each record, prompting the user to enter the values for each field of the record. When it allocates the next record, it will set the rodPtr to the next record allocated When the complete number of records has been entered, the rodPtr to the final record will be set to zero (to indicate no more records in the list). The subprogram will return a reference to the list of records (it will return the address of the very first reoord). asm main will then take the return value and pass it to a different subprogram that will print out each record, looping until the rodPtr says that these are no more records to print . Each record output will be formatted so that it peints nicely and is easily readabk Here is some example input/out put for your progr How many records vi11 you enter:3 Tasks Use the skeleton assembly file and the driver C file as starting points to write a program that meets the following requirements 1. The program prompts the user to enter in a umber. This mumber indicates how many records the user will enter. 2. The program prompts the user to enter vales for each element of the record. It repeats this process for the mumber of records the user entened in the previous item 3. When the user has entered all of the records, the peogram prints out the data for all of the records The record (a struct) will consist of the llowing generated (hint: you can just use a counter long (including the null character) 1 recordID (unsigned int) used to uniquely identify each rcord. This value should be intemally 2. firstName (string) - The first name for a person. This feld will not be more than 25 characters 3. last Name (string) -same as above, just the lastame . groupID (unsigned byte) - every person will be assigned to one of four groups. Each group is identiied by a uniqae number (1 4) As you read in people, assign them to a group (first person to group 1, second to group two, ifth person to group 1, sixth person to group two, 5.rodPtr (pointer) this will point to the neat record (a linked list-oh m Your program should complete the work via the Sollowing organization Do not do all of the work in asn.zain. You will use several subpeograms to get the job done 1. asm.main will prompt for how many records to read in, then call a subprogram, passing the number of records as a parameter, to read in the user's input Fall 2018 page 1 of 4 CPSC 232 93813 nt roduction to Assembler Programming 2. The subprogram will loop the number of times given by the input parameter, it allocates enough space for each record, prompting the user to enter the values for each field of the record. When it allocates the next record, it will set the rodPtr to the next record allocated When the complete number of records has been entered, the rodPtr to the final record will be set to zero (to indicate no more records in the list). The subprogram will return a reference to the list of records (it will return the address of the very first reoord). asm main will then take the return value and pass it to a different subprogram that will print out each record, looping until the rodPtr says that these are no more records to print . Each record output will be formatted so that it peints nicely and is easily readabk Here is some example input/out put for your progr How many records vi11 you enter:3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!