Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Using directives for creating symbolics, write a single statement that computes

ID: 3790726 • Letter: U

Question

Using directives for creating symbolics, write a single statement that computes the number of seconds in a day.

Specifications:

a) Place the result in the EDX register.

b) The statement that is placed in the program and expanded should be SECONDS_IN_DAY.

c) The EDX register should be zeroed out before it is used.

d) Make sure the statement uses the symbolics to the fullest extent; that is, SECONDS_IN_DAY should be the only expression on the instruction line.

This is Assembly problem, can someone help me on this?

Explanation / Answer

SECONDS_IN_DAY __asm__ (mov EDX DWORD 0, 24*60*60);

This will initialize edx to 0 and compute seconds in day i.e 24*60*60 and the value will stored in EDX.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote