2. Data manipulation Flashcards

1
Q

how are computers built?

A

there are many ways to build a computer but most of computers are built with funoimen architecture

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what are parts of a computer architecture?

A
  • the main part is called CPU (central processing unit.
  • communication channel (Bus)
  • Main memory (RAM)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what are CPU’s parts?

A
  • Arithmetic/logic unit
  • Control unit (styr enhet)
  • Registers (arbetsminne)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what is Stored program concept?

A

The idea of storing a computer’s program in its main memory. (how is the program is going to do a task)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are Machine Language?

A

It is a set of all machine instructions recognized by the CPU.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a Machine Instruction?

A

A machine instruction is an instruction encoded as a bit patterns recognized by the CPU. To run tasks and operations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

where does a machine instruction gets the code from?

A

There are a set of codes that are implicated in the arbetsminne.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Is there many machine languages?

A

There is machine language for each different CPU. (It is specific to the CPU)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what are the the different architectures?

A

There are two:
- RISC (reduced instruction set computer) which have few, simple, efficient and fast instructions, for example ARM-based CPUs in smartphones.
- CISC (complex instruction set computers) which have many, convenient and powerful instructions, for example Intel-CPUs in laptops.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what are machine instruction categories?

A
  • Data transfer instructions move data from one location to another, for example one move data from RAM to arbetsminnet and when its handled it moves back. (LOAD-instructions and STORE-instructions)
  • Arithmetic/logic instructions tells the control unit to request an activity within arithmetic/logic, for example Boolean operations AND, OR, XOR as well as ADD and division. SHIFT and ROTATE
  • Control instructions direct the computation of the program rather than the manipulation of data, for example when we have terms such as If… go back to step four and so on. JUMP-instructions which direct the CPU to execute another than the next one.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

ADD signed integer instruction
00011010
+
01001001
=
10000000
+
01000001
=

A

00011010 / 26
+
01001001 / 73
=
01100011 / 99
_________________
10000000 / -128
+
01000001 / 65
=
11000001 / -63

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

SUB signed integer instruction

01001001
=

01000001
=

A

01001001 / 73
=
00011010 / 26
__________________
11000001 / -63
-
01000001 / 65
=
10000000 / -128

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Overflow:

A

00000011/ 3
=
01111111 / 127 (overflow)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Program execution:

A

When a program is executed it is executed in machine cycles.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Three steps

A

-Fetch: Retrieve the next instruction from memory and the increment the program counter
-Decode: decode the bit patters in the instruction register.
- Execute: Perform the action required by the instruction in the instruction register.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Two special purpose register:

A
  • Program counter(programmräknare): holds the address of the next instruction.
  • Instruction register: holds the instruction to be executed.
17
Q
A