Exam #1 Review Flashcards

1
Q

man command

A

manual

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

who command

A

shows whose logged in

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

ld command

A

linker-loader

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

cat command

A

concatenates one file to another

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

pull command

A

fetches and downloads remote repository and immediately updates local repository to match the content

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

bit

A

smallest unit of data

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

byte

A

8 bits

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

word

A

2 bytes

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

ALU

A

arithmetic logic unit

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

CU

A

control unit

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

IP

A

instruction pointer

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

registers

A

hold data in CPU (looks normal)

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

How many bytes are AH and AL

A

1 byte

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

How many bytes are AX

A

2 bytes

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

How many bytes are EAX

A

4 bytes

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

How many bytes are RAX

A

8 bytes

17
Q

What do we use to make an executable?

A

nasm and ld

18
Q

what is the .data assembly section used for?

A

data variables (DB, DW, DD)

19
Q

what is the .bss assembly section used for?

A

uninitialized data

20
Q

what is the .text assembly section used for?

A

where the main code goes

21
Q

how to declare a variable in assembly

A

in the .data section:
variable: datatype value
ex: var1: DB 1

22
Q

mov purpose and usage

A

moves data into register
mov reg, data
ex: mov AX, var1

23
Q

add purpose and usage

A

adds data into register
add ____, ____

24
Q

inc purpose and usage

A

increments register by 1
inc register
ex. inc AX

25
Q

dec purpose and usage

A

decrements register by 1
dec register
ex. dec AX

26
Q

sub purpose and usage

A

subtracts data into register
sub ____, ____

27
Q

fetch/execute cycle

A

1) get next instruction from RAM (current IP)
2) Update IP
3) Decode and run

28
Q

Permissions

A

rwx rwx rwx
owner, group, world
set these to binary to give read, write, execute to desired ppl