4.2. Assembly Language Flashcards

1
Q

Assembly language

A

Low-level programming language with
instructions made up of an op code and an operand

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

Machine code

A

Code written in binary that uses the
processor’s basic machine operations

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

Relationship between machine and assembly language

A

Every assembly language instruction (source code) translates into exactly one machine code instruction
(object code)

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

Symbolic addressing

A
  • Symbols used to represent operation codes
  • Labels can be used for addresses
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Absolute addressing

A

A fixed address in memory

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

Assembler

A
  • Software that changes assembly language into
    machine code for the processor to understand
  • The assembler replaces all mnemonics and labels with
    their respective binary values (that are predefined
    before by the assembler software)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

One pass assembler

A
  • Assembler converts mnemonic source code into
    machine code in one sweep of program
  • Cannot handle code that involves forward referencing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Two pass assembler: software makes 2 passes through code

A

On the first pass:
* Symbol table created to enter symbolic addresses
and labels into specific addresses
* All errors are suppressed

On the second pass:
* Jump instructions access memory addresses via
table
* Whole source code translates into machine code
Error reported if they exist

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

LDM

A

Immediate: Load n into ACC

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

LDD

A

Direct: load contents at
address into the ACC

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

LDI

A

Indirect: load contents of
address at given address
into ACC

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

LDX

A

Indexed: load contents of
given address + IR into ACC

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

STO

A

Store contents of ACC into
address

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

ADD

A

Add contents of register to
ACC

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

INC

A

Add 1 to contents of the
register

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

CMP

A

Compare contents of ACC
with that of given address

17
Q

CMP

A

Compare contents of ACC
with n

18
Q

JPE

A

Jump to address if compare
TRUE

19
Q

JPN

A

Jump to address if compare
FALSE

20
Q

JMP

A

Jump to given address

21
Q

IN

A

Input any character and
store ASCII value in ACC

22
Q

OUT

A

Output character whose
ASCII value is stored in ACC

23
Q

END

A

Return Control to operating
system