comp ah

studied byStudied by 8 people
5.0(1)
Get a hint
Hint

ARM assembly language supports two types of comments.

1 / 152

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

153 Terms

1

ARM assembly language supports two types of comments.

false

New cards
2

If the processor requests data that is available in the cache, it is returned quickly. How do we call it?

cache hit

New cards
3

Store 0x87664422 into memory using little-endian fashion

0 = 22, 1 = 44, 2 = 66, 3 = 87

New cards
4

Store 0x87664422 into memory using big-endian fashion

0 = 87.1 = 66, 2 = 44. 3 = 22

New cards
5

Commonly used operands are stored in registers. True/False?

True

New cards
6

This status flag shows 1 when instruction causes an overflow

V

New cards
7

This status flag shows 1 when instruction causes an Negative

N

New cards
8

This status flag shows 1 when instruction causes an Zero

Z

New cards
9

This status flag shows 1 when instruction causes an Carry

C

New cards
10

BIC r0, r1, r2 performs

it computes r1 AND NOT r2, and stores the result into r0

New cards
11

Specific arrangement of registers, memories, ALUs, and other building blocks to form a microprocessor is _

Microarchitecture

New cards
12

The memory address is the base register value. An offset is added or subtracted from the base register value and the result is written back to the base register. What type of indexing is this?

Postindex

New cards
13

The memory address is formed in the same way as for offset addressing. The memory address is also written back to the base register. In other words, the base register value is incremented or decremented by the offset value. The exclamation point signifies

Preindex

New cards
14

For this addressing method, indexing is not used. An offset value is added to or subtracted from the value in the base register to form the memory address.

Offset

New cards
15

What is the third level of memory hierarchy?

Hard drive

New cards
16

What is the second level of memory hierarchy?

main memory (physical memory)

New cards
17

What addressing mode is used for indexing?

displacement

New cards
18

The instruction sets of different architectures are more likely different dialects than different languages. True/False?

true

New cards
19

This addressing mode requires only one memory reference and no special calculation. About what type of the addressing mode do we talk?

direct

New cards
20

The condition flags are stored in the LSB of the CPSR

false. it stored in MSB of CPSR

New cards
21

You are given the code in a high-level language: a = mem[3]. Write this code in the ARM assembly language. Assume that the variable a is stored in register r0.

mov r1, #0 LDR r0, [r1, #12]

New cards
22

Inputs for the operation are called

operands

New cards
23

It is used to translate a code written in a high-level language into a machine code

compiler

New cards
24

If the processor requests the data from main memory, how do we call it?

cache miss

New cards
25

Operation is determined by a binary code, known as

operation code or opcode

New cards
26

ARM architecture represents each instruction as

32-bit word

New cards
27

digital systems that read and execute machine language instructions

Microprocessors

New cards
28

• Humans consider reading machine language to be tedious, so we prefer to represent the instructions in a symbolic format called

assembly language.

New cards
29

Almost all architectures define basic instructions such as add, subtract, and branch that operate on memory or registers.

true

New cards
30

Each assembly language instruction specifies both the operation to perform and operands on which to operate.

true

New cards
31

ARM assembly language supports only single-line comments.

true

New cards
32

The ARM architecture has 16 registers called

register set or register file

New cards
33

In the ARM architecture, data stored in memory must be moved to a register before it can be processed.

true

New cards
34

ARM and most other architectures use ___________ to skip over sections of code or repeat code.

branch instructions

New cards
35

Branches can be unconditional or conditional. Branches are also called jumps in some architectures.

true

New cards
36

Memory system performance metrics

miss rate, hit rate, AMAT(average memory access time)

New cards
37

In this type of shift operation, the data are treated as a signed integer and the sign bit is not shifted.

Arithmetic shift right

New cards
38

What is the type of addressing mode given by the algorithm Operand = A?

immediate

New cards
39

What is the type of addressing mode given by the algorithm EA = A?

direct

New cards
40

What is the type of addressing mode given by the algorithm EA =(A)?

indirect

New cards
41

What is the type of addressing mode given by the algorithm EA =(R)?

register indirect

New cards
42

What is the type of addressing mode given by the algorithm EA = R ?

register

New cards
43

What is the type of addressing mode given by the algorithm EA = A + (R) ?

displacement

New cards
44

load register instruction, (LDR)

to read a data word from MEMORY into a REGISTER

New cards
45

store register instruction, (STR)

to write a data word from a REGISTER into MEMORY.

New cards
46

No left rotation instruction

true

New cards
47

one that may be referenced by means of the machine language that the processor executes.

user-visible register

New cards
48

Advantages: 1) No memory reference to obtain the operand 2) Size of the number is restricted to the size of the address field.

Immediate addressing

New cards
49

It requires only one memory reference and no special calculation. It provides only a limited address space.

Direct addressing

New cards
50

The disadvantage is that instruction execution requires two memory references to fetch the operand: one to get its address and a second to get its value.

Indirect addressing

New cards
51

Advantages: 1) Only a small address field is needed in the instruction 2) No time-consuming memory references are required Disadvantage: the address space is very limited

Register addressing

New cards
52

Register indirect addressing uses one less memory reference than indirect addressing.

Register indirect addressing

New cards
53

Common uses of displacement addressing

Relative addressing, Base-register addressing, Indexing

New cards
54

You are given: r1 = 0100 0110 1010 0001 1111 0001 1011 0111, r2 = 1111 1111 1111 1111 0000 0000 0000 0000. What is the result of BIC r6, r1, r2?

0000 0000 0000 0000 1111 0001 1011 0111

New cards
55

Shifting a value left by N is equivalent to multiplying it by 2^N (logic shifting)

true

New cards
56

Arithmetically shifting a value right by N is equivalent to dividing it by 2^N

true

New cards
57

ARM includes two types of branches:

Simple branch (B) , Branch and link (BL)

New cards
58

the average time a processor must wait for memory per load or store instruction.

Average memory access time (AMAT)

New cards
59

The relationship between the address of data in main memory and the location of that data in the cache is called ______

mapping

New cards
60
New cards
61
New cards
62
New cards
63
New cards
64
New cards
65
New cards
66
New cards
67
New cards
68

What is Nibble?

4 binary digits in symbols(1010=A…,1111=F)

New cards
69

Reasons to use hexadecimal notation:

1)compact

2)used in most computers

3)extremely easy

New cards
70

ALU

Digital logic devices that can store binary digits and perform Boolean logic operations

New cards
71
New cards
72
term image
knowt flashcard image
New cards
73

Range extension

knowt flashcard image
New cards
74

Range extension

1) for (+) numbers:move to leftmost position and fill with zeros

2) for (-) numbers:move to leftmost position and fill with ones

New cards
75

Overflow Rule:

If two numbers are added, both(+) or (-), then overflow occurs if and only if the result has the opposite sign

New cards
76

Commutative Law

A•B = B•A

A+B = B+A

New cards
77

Distributive Law

A•(B+C) = (A•B) + (A•C)

A+(B•C) = (A+B) • (A+C)

New cards
78

Identify Elements

1•A=A

0+A=A

New cards
79

Inverse Elements

A•~A=0

A+~A=1

New cards
80

0•A=?

1+A=?

0•A=0

1+A=1

New cards
81

Associative Law

A•(B•C)=(A•B)•C

A+(B+C)=(A+B)+C

New cards
82

DeMorgan’s Theorem

(A*B)’=A’+B’

(A+B)’=A’•B’

New cards
83

List the ways of defining a combination logic circuit :

Truth table, graphical symbols, Boolean functions

New cards
84

Program counter contains?

Address of the next instruction

New cards
85

Positional number system

Each number represented by string, has weight r^i (r=radix, base of the system )

New cards
86

Combinational logic circuit

Interconnected set of gates (output=input)

New cards
87

Sequential circuits

output=input+history of input

New cards
88

Multiplexer

Multiple input= single output

New cards
89

Decoders

Only one output asserted at any time

New cards
90

Demultiplexer

Inverse multiplexer, single input =several output

New cards
91

Flip-flop

Bistable device, 1-bit memory, 2 output =Q and Q’

New cards
92

Parallel register

1-bit memory written simultaneously

New cards
93

Serial register

And/or information serially 2^n-1

New cards
94

Memory arrays

used to store large amounts of data.

New cards
95

The row is specified by an…

Address.

New cards
96

The value read or written is called

Data

New cards
97

Each row of data is called as

word

New cards
98

The depth of an array is the number of rows. The width of an array is the number of columns. The size of an array is given as depth x width.

true

New cards
99

Memory arrays are built as an array of ________, each of which stores 1 bit of data.

bit cells

New cards
100

All memories have one or more ports. In _________case, each port gives read and/or write access to one memory address.

singleported memory

New cards

Explore top notes

note Note
studied byStudied by 11 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 19 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 10 people
Updated ... ago
5.0 Stars(2)
note Note
studied byStudied by 45 people
Updated ... ago
5.0 Stars(3)
note Note
studied byStudied by 8 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 27 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 7 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 3 people
Updated ... ago
5.0 Stars(1)

Explore top flashcards

flashcards Flashcard42 terms
studied byStudied by 31 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard36 terms
studied byStudied by 7 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard49 terms
studied byStudied by 3 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard66 terms
studied byStudied by 1 person
Updated ... ago
5.0 Stars(1)
flashcards Flashcard65 terms
studied byStudied by 1 person
Updated ... ago
5.0 Stars(1)
flashcards Flashcard49 terms
studied byStudied by 33 people
Updated ... ago
5.0 Stars(3)
flashcards Flashcard134 terms
studied byStudied by 16 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard44 terms
studied byStudied by 7 people
Updated ... ago
5.0 Stars(1)