Ask Assembly Expert

1. Complete the following tables using hexadecimal  numbers only :

 

32

25

24

17

16

9

8

1

INSTRUCTIONS

 

 

 

 

 

 

 

 

mov eax, 3F293567h

 

 

 

 

 

 

 

 

mov ax, 9BCh

 

 

 

 

 

 

 

 

mov ax, 3D32h

 

 

 

 

 

 

 

 

mov ah, 5Ch 

 

 

 

 

 

 

 

 

mov  ax, 3h

 

 

 

 

 

 

 

 

mov eax, 1267

 

 

 

 

 

 

 

 

mov ax, 3AF4h

 

 

 

 

 

 

 

 

mov ah, 27h  

 

 

 

 

 

 

 

 

mov al, 25

 

 

 

 

 

 

 

 

2. Complete the following table with hexadecimal numbers only.

ASSEMBLY CODE

EAX

EDX

X

x dword 6AAD h

 

 

 

mov edx, 0h

 

 

 

mov eax, 5ACDEFh

 

 

 

div  x

 

 

 

3. Complete the following tables with hexadecimal numbers only:.          

ASSEMBLY CODE

EAX

EDX

X

x dword 78368239d

 

 

 

mov eax , x

 

 

 

mul  x

 

 

 

4.  Complete the table below. Use only hexadecimal numbers only.

AL INSTRUCTIONS

  eax

ebx

BYTES:

 

1

2

3

4

5

6

7

8

mov eax, 2 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

mov  ebx, 7D12Eh

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

mov [eax], ebx

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

mov eax, 4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

mov ebx, 923d

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

mov [eax], ebx

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

mov  ebx, 3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

mov eax, [ebx]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

mov eax, 5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

move ebx,  '- x3'

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

mov [eax], ebx

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5. Compute 433235 Mod(2435) = N5 = ________

6.

mov ax ,  1011 0100 1110 1011 b

mov bx,   0000 0101 0010 0000 b

and ax, bx

shr ax, 4 ;                                      

The register AX will contain the resulting number, in decimal =              

7. (a).  The float point number 56.00089   = N10/M10 where N10/M10 = __________

   (b).  N10/M10 -> P16/Q16 where P16/Q16 = _____

8.  Write 0.23/0.0035 in scientific notation form  N/M* 10 n  where N, M and n are integers:  _______

9. The end of the following partial program will store    __________   into  eax.    

mov eax, 0

mov ebx, 1

begin: cmp ebx , 3

jg end

add ebx, 1

add eax, ebx

jmp begin

end:

10. From this partial program complete the following table below:

mov eax, 1 ;        

mov ebx, 100       

cmp eax, 4

begin: jg  end

mov [ebx], eax

 add eax, 2

add ebx, 4

 jmp begin

end:

Memory Storage                               

100

101

102

103

104

105

106

107

108

109

110

111

 

 

 

 

 

 

 

 

 

 

 

 

11. [(0.3879)(768000)]/[(57.554)(3000)] = [(3879)10n(768)10m]/[(57554)10p(3)10q] =

     {[(3879)(768)/[(57554)(3)]}10R

n = _______  ; m = ________ ;   p = ___  ; q = _________   ;    R__________            

12. The following partial program will truncate the number 3.5

.data

n word ?

x real4     3.5

round word 0600h

.code

_start :

fld x           

fstcw round

fist n ;         

public _start

end

True   ______    False _______  

13. .data

n word ?

x real4 0.09

y word ?

round word 0600h

.code

_start :

fld x          

fldcw round     

fist n            

fstcw  y

public _start                                                                                                                                                                    

end:  This partial program stores in y the value _____  and stores in n the value ______

14.

; begin

mov m,  0100010100000000b

fcom x

fstsw ax

and ax,m

cmp  ax,  0100000000000000b

 jne L1

mov eax, 1 

jmp L2

L1:mov eax ,  0

L2: end

Assuming that S has a value, the partial program above will find that

(a). S > x;     (b). S < x     (c). S=x      (d).  S≠ x  (e).  none of these   __________

15. The following are ASCII codes: 3C 42 5D.   Translate into a string ___________   

16.  Complete the following table below. Only hexadecimal numbers.                                

INSTRUCTIONS

eax

ebx

BYTES:

 

9

10

11

12

13

14

15

16

17

mov eax,  2ACB16h

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

mov ebx, 9d

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

add ebx, 1d

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

mov [ebx], eax

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

add  [ebx], ebx

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

add  eax, ebx

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

17.  Complete the table below. Only hexadecimal numbers.

AL INSTRUCTIONS

  eax

ebx

BYTES:

 

1

2

3

4

5

6

7

8

mov eax, 2 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

mov  ebx, 7D12Eh

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

mov [eax], ebx

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

mov eax, 4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

mov ebx, 568923h

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

mov [eax], ebx

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

mov  ebx, 3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

mov eax, [ebx]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

18.  The largest 24 bits signed hexadecimal number that can be stored in EAX is

EAX:                                            hexadecimal number                     

 

 

 

 

 

 

 

 

Complete the table above.

Assembly, Programming

  • Category:- Assembly
  • Reference No.:- M9744747

Have any Question?


Related Questions in Assembly

Really need to find a correct answer to this questionwrite

Really need to find a correct answer to this question: Write a MIPS assembly program that can search for a number that is entered by a user in an array with 20 integer number. Make sure it also prints the index of the ar ...

Question a sequence string of one-byte ascii characters is

Question : A sequence (string) of one-byte ASCII characters is stored at memory location $600 onward. A second sequence of equal length is stored at memory location $700 onward. Each sequence ends with the character $0 ( ...

Task 1using masm sdk write an assembly language program

TASK 1 Using MASM SDK, write an assembly language program which converts an integer inputted via the console to binary. Your program should be well commented and well formatted. TASK 2 Using MASM SDK, write an assembly l ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As