182k views
2 votes
Which of the following CALL instructions writes the contents of EAX to standard output as a signed decimal integer?

a. call WriteInteger
b. call WriteDec
c. call WriteHex
d. call WriteInt

User Abir
by
4.5k points

1 Answer

1 vote

Answer:

d. call WriteInt

Step-by-step explanation:

Required

Instruction to write to decimal integer

Of the 4 instructions, the call WriteInt instruction is used write to a decimal integer.

This is so, because the WriteInt instruction writes a signed decimal integer to standard output.

This implies that the output will have a sign (positive or negative) and the output will start from a digit other than 0 (i.e. no leading zero)

User Ran Eldan
by
4.2k points