Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assembly language 1. in x86 architecture EFX is A. is a 32-bit general purpose register B. is a 16-bit flag register C. is a 128

Assembly language

1. in x86 architecture EFX is

A. is a 32-bit general purpose register

B. is a 16-bit flag register

C. is a 128 bit real numbers register

D. All of the above

E. None of the above

2. The hexadecimal 16-bit signed number 8A9h

A. is a positive number

B. is a negative number

C. is not positive or negative because of the h

3. All the following are segment registers except

A. BS

B. FS

C. SS

D. DS

E.CS

4. Which of the following is not a CPU status flag

A. parity

B. Carry

C. sign

D. Zero

E. none of the above - all are valid

5. The difference between = (equal sign) an EQU directive is

A. with EQU you can change the initial value of variable anywhere in the program code

B. with - you can change the initial value of variable anywhere in the program code

C. EQU copies the offset of the variable while = does no

D. Nothing- they can be used interchangeably

Consider the following assembly code

.date

array1 WORD 10 DUP (?)

noArrSize = ($ - array1)

.code

mov ECX, noArrSize ; Line 1

6. Line 0 will store into noArrSize the decimal value

A. 10

B. 20

C. ?

D. DUP

7. In assembly, a string lateral may be enclosed in single or double quotes

A. Ture

B. False

8. The instruction MOV EAX, 1234h will store the number ___________________ in register AL

A. 12

B. 23

C. 34

D. 41

E. h

9 The instruction MOV BX, A03h

A. will store A03 in BX

B. will not assemble

C. will add 03 to the content of BH register

D. will divide A03h by BX and tore the result in memory A03

10. The assembler produces a file of which type

A. object File

B. Link File

C. Executable File

D. Output file

E. byte code file

11. DUP is an operator that allocates storage for multiple data items

A. true

B. false

C. only if used with BYTE

D. only if used with DWORD

use the following data for question 12- 16

.data

Val1 BYTE 10h

Val2 WORD 8000h

val3 DWORD 0FFFFh

val4 WORD 7FFFh

12. write a statement(s) that increment val2.

13. write a statement(S) that subtract val3 from EAX

14. write a statement(s) that subtracts val4 from val2

15. if val2 is incremented by 1 using the ADD instruction, what will be the carry flag and sign flag?

16. if val4 is incremented by 1 using the ADD instruction, what will be the overflow flag and sign flag?

17. where indicated, write down the values of the Carry, sign Zero, and overflow flags after each instruction have executed:

mov ax, 7FF0h

add al, 10h ; a. CF = SF= ZF= OF=

add ah, 1 ; b. CF = SF= ZF= OF=

add ah, 2 ; CF = SF= ZF= OF=

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

T Sql Fundamentals

Authors: Itzik Ben Gan

4th Edition

0138102104, 978-0138102104

More Books

Students also viewed these Databases questions

Question

What keeps satellite up in its orbit around the Earth?

Answered: 1 week ago

Question

Manage your own stress effectively.

Answered: 1 week ago

Question

3. Evaluate your listeners and tailor your speech to them

Answered: 1 week ago