1 complete the following tables using hexadecimalnbsp

Assignment Help Assembly Language
Reference no: EM13375131

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.

Reference no: EM13375131

Questions Cloud

Describe the structure and operations of the foreign : describe the structure and operations of the foreign exchange markets and discuss common techniques used to manage
Question no1consider a scenario of post mailbox there are : question no.1consider a scenario of post mailbox there are two processes named sender s and receiver r. both processes
I firms often face the problem of allocating an input in : i firms often face the problem of allocating an input in fixed supply among different products. nbspfind the optimal
Question 1 a gantt chart represents mainlyanswer an : question 1 a gantt chart represents mainlyanswer an immediate identification of predecessor task. a record-keeping
1 complete the following tables using hexadecimalnbsp : 1. complete the following tables using hexadecimalnbsp numbers only
Define scarcity and opportunity cost what role these two : define scarcity and opportunity cost. what role these two concepts play in the making of business decisions?a what is
Natural gas spot and future pricesthe law of one price : natural gas spot and future pricesthe law of one price implies that the spot price and the future price of a commodity
Unit 2 individual projectyou have just been asked to teach : unit 2 individual projectyou have just been asked to teach the concept of adaptation to a psychology class. you decide
Assignment onenbspwrite a two to three 2-3 page paper in : assignment onenbspwrite a two to three 2-3 page paper in which you1.briefly describe your like or dislike one to two

Reviews

Write a Review

Assembly Language Questions & Answers

  Write a single arm assembly language instruction equivalent

Write a single ARM assembly language instruction equivalent to a function that takes in three strings and checks if any are a substring to one another, if so return 1, if not return 0.

  Program for huffman compression/decompression

Write a program for Huffman compression/decompression in assembly language that takes the data from input.txt and writes the output in output.txt.

  Register address machine

Express the statement X= (A*B)-(C*D)-E in the assembly language of each of 0- memory address machine, 3-register address machine with 3 registers R1,R2,R3, and 2-memory-register-address machine with three registers R1,R2, R3. Your solution should use..

  Write an assembly program

Prepare an Assembly program that reads in a number of cents.

  Write a sequence of two instructions

Write a sequence of two instructions that copies the inter in 4-7 from the AL registers into bits 0-3 of the Bl register. The upper 4 bits of AL will be cleared as will the upper 4 bits of BL. (Microsoft Assembly Language)

  Greatest common divisor of integers-masm assembly language

Must be done in MASM assembly language: Greatest common divisor of two integers is largest integer which will evenly divide both integers. GCD algorithm involves integer division in a loop.

  In this project you will build an 8088 assembler the job

in this project you will build an 8088 assembler. the job of your assembler is to turn 8088 assembly code i.e. the

  Create a strcat procedure

Create a strcat procedure (like C's strcat function). Your procedure will be given the addresses (using the method presented in Chapter 8) of two string arrays.

  Draw a flow chart for this

Draw a Flow Chart for this 8051 assembly language program below. This program calculate y=x^2+ 2x+9. Register R0 has the x, and at the end of the program R2 should have y. (Test program for x=9).

  Assembly-language program

Write an assembly-language program to add each element of list1 to the corresponding element of list2 and store it in the same location of list2. Use a loop.

  Problem 1 square root for this problem you will write a

problem 1 square root for this problem you will write a short assembly program that computes the integral square root

  Program in assebly language to solve first degree equations

Create the program on Assebly language which can solve First Degree Equations in form of Ax + B = 0. Coefficients of equation must be entered from keyboard.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd