ask a question at likeplum


Welcome to Hackerpool

The Ultimate Resource for Programming, Webmasters, Graphic Design, and IT

Verified Programmers:  Receive quality work from our verified Hackers.

Privacy options: Choose to make your tasks 100% private.

Post your own Task Become a Hacker
Verified
Daown Daown
Reputation: 30
Asked Jan 2nd, 2013 / Closed
1141 views

Help me with Assembly Language questions

Budget: $0.25

Please ignore the dots/periods and only fill in the boxes (made out of underscore and slashes like /__/ ).
I used the dots/periods only to fill up empty/blank space. What's under PSEUDO-CODE is each row. For number 1, Z := 4682h - 2287h is for all the rows (all 3 rows).

1.
Complete the table below. All numbers are in hex and are each stored in a word.

PSEUDO-CODE       / ASSEMBLY CODE / EAX / AX / AH / AL / Z /
Z := 4682h - 2287h / mov ax, 4682h    / ____/____/___/___/___/
......................./ sub ax, 2287h     / ____/____/___/___/___/
......................./ mov z, ax           / ____/____/___/___/___/

2.
Complete the table below. All numbers are in hex and are each stored in a word.

AL PSEUDO-CODE         / AL -CODE...............  / EAX / EDX / P / Q /
P := ff ff ff fah.........../ p dword 0ff ff ff ff fah / ____/____/___/___/
Q:= 10h.................. / q dword 10h............. / ____/____/___/___/
EAX:= P.................. / mov eax, p..............  / ____/____/___/___/
EDX:= 0.................. / mov edx, 0 .............  / ____/____/___/___/
EAX*Q.................... / mul q...................    / ____/____/___/___/

3.
Complete the table below. All numbers are in hex and are each stored in a word.

AL PSEUDO-CODE  / AL -CODE............   / EAX / EDX / N / M /
N :=ff ff ff fah....../ n dword 0ff ff ff fah / ____/____/___/___/
M:= 10h............. / m dword 10h........  / ____/____/___/___/
EAX:= N............. / mov eax, n........... / ____/____/___/___/
EDX:= 0............../ mov edx, 0..........  / ____/____/___/___/
EAX÷M.............../ div m.................. / ____/____/___/___/

4.
Complete the following table using hexadecimal numbers only :

INSTRUCTIONS ........   / 32 / 25 / 24 / 17 / 16 / 9 / 8 / 1 /
mov eax, 112937234d   /___/___/___/___/___/___/__/__/
mov ax, 9BCh........... /___/___/___/___/___/___/__/__/
mov al, 5................../___/___/___/___/___/___/__/__/
mov ah, 0Eh............. /___/___/___/___/___/___/__/__/
mov al, 2................. /___/___/___/___/___/___/__/__/

Only answers are fine because I am trying to check my answers. Thank you! 

Please have the answers filled in when showing.

Supplement: If you can solve this with all the right answers, I'm willing to pay more. Message me for more pay – Daown Jan 2nd, 2013

hackerpool is the best place to get Internet and programming tasks help.

Type your task here. Tasks are answered every 9 seconds!

* All work can be made 100% private and is original. Learn more