Answer to Question #259287 in Assembler for Roy

Question #259287

Two code snippets are being presented to you.

1. mov rax, 0x1234567812345678

xor ax, 0x11

mov rdi, ax

call printf

xor rax, 0x11

mov rdi, rax

call printf

2. int x=-2;

unsigned int y = -33;

int z;

z = x + y;

printf(‘‘%u %u %u’’, x,y,z);

printf(‘‘%d %d %d’’, x,y,z);

In both the parts (1) and (2), explain what the two printf function calls

result in. Explain the reasons for any differences in the two cases.


1
Expert's answer
2021-11-02T17:41:21-0400
Dear Roy, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS