1answer.
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
TiliK225 [7]
3 years ago
13

Write a C translation of the NASM program below, sticking to the assembly code as much as possible. Use single-letter variable n

ames for function parameters (e.g., int foo(int x, int y)) and for local variables within function (e.g., int z) instead of using x86 register names (in fact registers should never appear in your translation). It is expected that your C code is much shorter than the assembly code.
Computers and Technology
1 answer:
vichka [17]3 years ago
6 0

Answer:

See explaination

Explanation:

mov ebp, esp

and esp, 0FFFFFFF0H

sub esp, 16

mov dword [esp], ?_001

call puts

mov eax, 0

leave

ret

End

The C translation is always expected to be shorter than the assembly language code.

You might be interested in
Which would increase electric current? increasing the resistance increasing the size of the wire decreasing the voltage
Neko [114]
The answer is the second answer Increasing the size of the wire.
8 0
3 years ago
PYTHON CODING LANGUAGE (i am a beginner)
MaRussiya [10]
#let the user input data
Hours = int(input(“enter how many hours were worked”))

Pay_rate = float(input(“Enter the pay rate”))

Pay_amount = Pay_rate * Hours
#calculate the wages


Print (Pay_amount)
#print the final answer
5 0
3 years ago
A pointing device uses light to determine hand motion.
kirill [66]
The answer to this is Optical mouse. 

The reason the answer is optical mouse is because the optical mouse is a computer mouse which uses a light source, typically a light-emitting diode, and a light detector, such as an array of photodiodes, to detect movement relative to a surface. 

Hope this helped :)
have a great day 
3 0
3 years ago
Merlia is creating a presentation about her ethnic heritage for a homework assignment. Her friend John, a PowerPoint 2016 expert
Elanso [62]

Answer:

"apply to All"

Explanation:

The “Apply to All” button repeats a slide customization across all your slides, leaving them evenly. With this button, a modification made to one slide can be applied to all slides. This makes the power point presentation even and visually pleasing.

Since John told Merlia that it's often better to use the same slide transition consistently, we can conclude that John showed Merlia the "apply to all" button so she can apply the same transition to all slides in the presentation.

7 0
3 years ago
What are the pros and cons of using the internet in a medical office setting?
Shkiper50 [21]
Pros: are doctors are able to educate themselves in order to diagnose a patient, it's fast and convenient to put in records, medical facilities can transfer information from different locations etc.

Cons: the system can breached, this could leak health and personal information from patients, and the power could go down, delaying the use of signing in patients and etc
5 0
3 years ago
Other questions:
  • Modern operating systems decouple a process address space from the machine’s physical memory. List two advantages of this design
    15·1 answer
  • What should you keep in mind when installing hard drives?
    5·1 answer
  • In order to protect your computer from the newest virus, which of the following should you do after you've installed a virscan s
    9·1 answer
  • Write a program that prompts the user to enter an equation in the form of 10 5, or 10-5, or 1*5, or 13/4, or 13%4. The program s
    6·1 answer
  • design the psuedocode for a program that allows a user to enter 10 numbers, then displays them in the reverse order of their ent
    6·1 answer
  • What is a mortgage?
    8·2 answers
  • Now you are ready to implement a spell checker by using or quadratic. Given a document, your program should output all of the co
    15·1 answer
  • Take points for free who are new and enjoye them
    9·2 answers
  • Debug the program so it prints the factorial of a positive integer entered by the user. This is calculated by multiplying all th
    9·1 answer
  • true false the if statement causes one or more statements to execute only when a boolean expression is true
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!