answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Vinil7
3 days ago
5

int decode2(int x, int y, int z); is compiled into 32bit x86 assembly code. The body of the code is as follows: NOTE: x at %ebp+

8, y at %ebp+12, z at %ebp+16 movl 12(%ebp), %edx subl 16(%ebp), %edx movl %edx, %eax sall $31, %eax sarl $31, %eax imull 8(%ebp), %edx xorl %edx, %eax Parameters x, y, and z are stored at memory locations with offsets 8, 12, and 16 relative to the address in register %ebp. The code stores the return value in register %eax. The shl or sal instruction is used to shift the bits of the operand destination to the left, by the number of bits specified in the count operand Write C code for decode2 that will have an effect equivalent to our assembly Code. int decode2(int x, int y, int z) { }
Computers and Technology
You might be interested in
Which two statements are true regarding the user exec mode? (choose two.)?
Natasha_Volkova [1026]
<span>To enter global configuration mode, you need to type the enable command.</span><span>
The prompt indicating this mode concludes with the ">" symbol.</span>
8 0
1 month ago
there is a structure called employee that holds information like employee code, name, date of joining. Write a program to create
oksian1 [950]

Answer:

The following is the C program:

#include<stdio.h>

#include<conio.h>

struct employee{

char empname[50]; int empcode, day, mon, yr;

} employees[30];

int main(){

int total;

printf("Numbers of Employees: "); scanf("%d",&total);

for(int kt=0; kt<total; kt++){

printf("Employee Code: "); scanf("%d",&employees[kt].empcode);

printf("Name: "); scanf("%s", employees[kt].empname);

printf("Date of Joining [dd mm yyyy]: "); scanf("%d%d%d",&employees[kt].day,&employees[kt].mon,&employees[kt].yr); }

int year;

printf("\nCurrent Date [Year only]: "); scanf("%d", &year);

printf("Code\t\t\t Name\t\t\t Date of Joining\n");

for(int kt=0; kt<total; kt++)

if((year - employees[kt].yr) >= 15)

printf("%d\t\t\t %s\t\t\t %d/%d/%d\n", employees[kt].empcode, employees[kt].empname, employees[kt].day, employees[kt].mon, employees[kt].yr);

}

Explanation:

Refer to the attached document for clarification, including comments that elucidate certain lines

Download txt
3 0
1 month ago
Which kind of image is indispensable and needs added text to how with it A. a map B. a chart C. a graph or D. a photograph
Amiraneli [1052]
My initial thought would be a photograph. A graph would be my second guess. I trust this reply resolves your inquiry!
4 0
2 months ago
Read 2 more answers
One example of how psychological research can be used to control harmful behavior would be __________. A. fooling individuals th
Harlamova29_29 [1022]

Psychological research can be misused for harmful reasons like deceiving people through emotions, using propaganda to shift beliefs, or media manipulation.

However, it can also be beneficial, which is the intent of the question. Clearly, from the options presented, only (D) enhancing communication and relationships represents a positive application of psychological research.

8 0
2 months ago
Read 2 more answers
Write a function called sum_scores. It should take four arguments, where each argument is the team's score for that quarter. It
Rzqust [1037]
Here’s a Python program containing a function named sum_scores: def sum_scores(score1, score2, score3, score4): total = score1 + score2 + score3 + score4 print(total) sum_scores(14, 7, 3, 0). This outputs the cumulative score of 24. If preferred, rather than printing the result, a return statement could be used to provide the sum.
5 0
1 month ago
Other questions:
  • Assume a program requires the execution of 50 x 106 FP instructions, 110 x 106 INT instructions, 80 x 106 L/S instructions, and
    9·1 answer
  • You are a police officer trying to crack a case. You want to check whether an important file is in the evidence room. Files have
    5·2 answers
  • Sophie often makes grammatical errors in her document. Which feature of the Spelling and Grammar tool can she use to understand
    15·2 answers
  • What advantage do ExpressCard modules and USB adapters offer over expansion cards?
    5·1 answer
  • Which of the following does not describe local alignment algorithm?
    9·1 answer
  • Flowgorithm, Design a program that prompts the user to enter a number within the range of 1 through 10. The program should displ
    8·1 answer
  • Drag each label to the correct location on the image.
    11·1 answer
  • 10. There is repeated code in these onevent blocks. Choose the correct code for the updateScreen() function which would be calle
    11·1 answer
  • An ISP is granted the block 16.12.64.0/20. The ISP needs to allocate addresses for 8 organizations, each with 256 addresses. a.
    12·1 answer
  • A particular vendor uses the following approach to intrusion detection.16 The company maintains a large number of honeypots dist
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!