Question
Write the code using only the eax, ebx, ecx, and edx registers for your processing. Add the eax, ebx, ecx, and edx registers to the
Write the code using only the eax, ebx, ecx, and edx registers for your processing. Add the eax, ebx, ecx, and edx registers to the Watch. Use the esi and edi registers for the offsets for the arrays. Set watches to show the overall total and overall average. Also, add a memory view (as signed 4 byte data). When computing any averages, because these are signed data values, use the cdq command after setting eax (in place of setting edx to 0) and before using the idiv command (for signed division).
There are four cashiers with registers that may be over, under, or in balance in terms of cash on hand and reported sales. Determine how much the cashiers are off across all the days they work (sum), each cashiers average for the period as well as overall amount for the group (sum) and the overall average, in which the cashier discrepancies are kept tracked of in pennies. Each cashier works a different number of shifts over the reporting period, so create arrays of signed double words to hold the employee's data and use varying quantities of data for each employee, include both positive and negative values for each employee and ensure that one employee has data that would yield a negative total.
Use the current location pointer ($) and the type directive to compute and store (in labelled memory) the array size for the first two employees (use byte). For the other two employees, store (in labelled memory) the array sizes using the lengthof directive (use byte); and use the align directive after each of these bytes to simplify the debugging.Any time that indirect addressing is used make sure to use the type directive to compute the size of each offset; and the total amount off for each cashier will also be stored in an array of signed double words, with the average for each cashier in another array of signed double words, and for each cashier for computing the cashier totals use a loop (for the loops initialize ecx for the counting via the computed array sizes, and use the esi register to hold the address of the current element for a cashier incrementing esi for each shift while also using edi to keep track of the current cashier total in the array of totals incrementing edi for each cashier).
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started