Introduction Flashcards

(57 cards)

1
Q

In the machine cycle, this retrieves instruction from memory and increment the program counter.

A

fetch

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

In the machine cycle, it decodes the bit pattern in the instruction register.

A

decode

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

In the machine cycle, it performs the instruction in the instruction register.

A

Execute

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

Each instruction is stored in memory as?

A

bunch of bits

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

Who decodes the bits to determine what should happen

A

CPU

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

Instructions are from a language called?

A

machine language

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

This is an executable program which is a sequence of these simple instructions. The sequence is stored in memory.

A

machine code

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

In machine code, the cpu processes the simple instructions —–. Some instructions can tell the CPU to jump to a new place in memory to get the next instruction

A

sequentially

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

The computer can only understand the bits (the encoded program) through what language?

A

Machine Language

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

This language is a developed English-like abbreviations for programs

A

Assembly Language

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

This language is what the computer actually sees and deals with. Every command the computer sees is given as a number or sequence of numbers

A

machine language

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

this language is the same as machine language, except the command numbers have been replaced by letter sequences, which are easier to memorize.

A

assembly language

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

This language is the following:

  1. Middle Level language
  2. maps human-readable mnemonics to machine instructions
  3. allows machine-level programming without writing in machine language.
A

assembly language

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

These languages are there to make programming easier. it allows you to describe the program in a more natural language.

A

High level language

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

Assembly language is a —— language which provides the basic instructional interface to the computer processor.

A

Low language

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

Assembly language gives you direct control of the system resources by:

A
  1. setting processor registers
  2. accessing memory location
  3. interfacing with other hardware elements
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Programs written in high-level language are translated into —- in order for the processor to execute the program

A

assembly language

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

Reasons not to use assembly?

A
  1. Development time (too long)
  2. Maintainability: unstructured
  3. Portability: platform dependent
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

The input and output devices are connected to the? This is a collection of the computer’s electrical lines where signals pass through.

A

bus

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

The bus is typically designed to transfer fix-sized chunks of bytes knows as?

A

words

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

This chip is the:

  1. computer’s processor
  2. engine that interprets or execute instructions stored in main memory
  3. includes the arithmetic and logic unit and cpu register
A

CPU

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

In the CPU register, this is a set of flip flops treated as a single unit

A

register

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

this is a digital logic circuit capable os storing single bit

24
Q

this is a temporary storage device that holds both a program and the data it manipulates while the processor is executing the program

25
This a register serving as a temporary storage or working location built into the CPU itself (separate from memory). They typically perform computations.
CPU Registers
26
This register can be accessed with all 64 bits or some portion of subset accessed
General Purpose Registers
27
This general purpose register is used to point to the current top of stacks
Stack Pointer Register
28
This general purpose register is used as a base pointer during function calls
Base Pointer Register
29
This is a special register that is used by the CPU to point to the next instructions to be executed
Instruction Pointer
30
This special register is used for status and CPU control and information. It is updated by the CPU after each instruction and not directly accessible by programs
Flag registers (rFlags)
31
This special register stores status information about the instruction that was just executed.
Rflags (flag register)
32
This memory can be viewed as a series of bytes. Each memory address holds one byte of information.
Main memory
33
Main memory architecture is?
little-endian
34
The highest memory address in a memory layout is?
stack
35
the lowest memory address in a main memory layout is?
reserved
36
After stack in the memory layout, it is where dynamically allocated data will be stored if requested
heap
37
In the memory layout, this is where uninitialized declared variables are stored
BSS
38
in the memory layout, this is where the initialized data is stored
data
39
before the low memory address, in the memory layout, this is where the machine language is stored
text (code)
40
The typical speed of a register is?
1 nanosecond
41
the typical speed of cache memory is?
5 - 60 nanoseconds
42
the typical speed of a primary storage is?
100 - 150 nano seconds
43
the typical speed of a secondary storage is?
3-5 milliseconds
44
In the program sections, all initialized variable and constants are placed in this section. variable names must start with a letter Starts with section .data
Data Section
45
In data section, the constant is not assigned a?
memory location
46
in this program section, it includes some headers or labels that define the initial program entry point _start:
text section
47
To make numerical specified as hex we use?
suffix h or x 0h or 0x
48
To make numerical specified as octal we use?
suffix q or o 0q or 0o
49
To make comments in assembly language we use?
semicolon
50
In the programming the process, this process modifies the original program according to directives that begin with "#" character
preprocessing
51
This programming process translates the output text file of the pre-processor into a text file which contains an assembly language program
compilation
52
In the programming process, this translates compiler output to machine language instructions, generating a relocatable object program.
Assembly
53
In the programming process, it handles the merging of other necessary precompiled object files with the assembler's output, generating an executable file
linking
54
In the assembly tool chain this is a program that will read an assembly language input file and convert the code into a machine language binary file. The comments are removed, and the variable names and labels are converted into appropriate addresses nasm -felf64 .asm
assembler
55
In this assembly tool chain, it combines one or more object files into a single executable file. Any routines from user or system libraries are included as necessary. ld [-o ] .o
Linker
56
In the assembly tool chain, this is the part of the operating system that will load the program from secondary storage into primary storage (main memory) a.out ./
loader
57
In the assembly tool chain, this is used to control execution of a program. it allows for testing and debugging activities to be performed
debugger