week 7 assembly language Flashcards

1
Q

Machine Language

A

Bit patterns that are directly executable by computer.

Instructions that the CPU can understand

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

Assembly Language

A

Symbolic representation of machine language.

Instructions are written in mnemonic ASCII

Only readable for humans

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

Assembler

A

used to translate assembly program (.ASM) into machine code (.OBJ)

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

Linking

A

Process of connecting several .OBJ files together into one executable program.

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

Programming

A

Process f designing/writing/testing/debugging/maintaining the source code of computer programs.

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

Variables

A

places to store information

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

Loops

A

a way to “repeat” a portion of a program over and over again

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

conditional control

A

a way for our program to change the natural flow of a program based on a condition.

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

Subroutine

A

a function in a high level language

a group of instructions meant to perform a specific task like square a number

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

Pointers

A

variable storing a memory address

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

Dereferencing

A

act of using the memory address held onto by a pointer to read/write from the memory location held onto by that pointer.

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

Assembly directives

A

provide an indication to the assembler of where it should place various blocks of code or data

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

what i need to write if/else statement in assembly

A
  1. loading constants
  2. arithmetic
  3. compare
  4. branch
  5. basic jump instruction
  6. labeling in assembly
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

what i need to write a subroutine

A
  1. .FALIGN
  2. Labels
  3. JSR
  4. RET
  5. assembly directives
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What i need to access data memory?

A
  1. LDR
  2. STR
  3. pointer
  4. for loop
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How does an assembler program operates?

A
  1. first phase: converts labels into offsets and removes comments
  2. second phase: converts assembly code into machine code with ISA and save it to an object file (.OBJ)
  3. Then when this code finishes, a “loader” program loads it into computer’s memory.
17
Q

what are 2 regions in the LC4 memory

A
  1. User region:
    - programs run by users like MS Word.
    - Processes run in user mode with PSR[15] = 0 are not allowed to access
    OS locations in the memory
  2. OS region:
    - Processes run in OC mode with PSR[15] = 1
    - Address x8200 first address of your OS
18
Q

.DATA

A

next values are in data memory

19
Q

.ADDR

A

set current address to the specified value

20
Q

.FILL IMM16

A

set value at the current address to the specified 16 bit value