Chapter 6 Assembly Language Programming Flashcards

1
Q

What language does the CPU recognize?

A

The CPU recognizes only machine code

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

In what kind of format is machine code?

A

Machine code is in binary format.

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

What is a machine code instruction?

A

A machine code instruction is a binary code with a defined number of bits that comprises an opcode and most often one operand.

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

What is the machine code comprised of?

A

Opcode - is the portion of a machine language instruction that specifies the operation to be performed
Operand - the data to be processed
Address mode - Stores address
Register addressing

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

Write an example of a register transfer notation and its meaning?

A

CU control unit

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

What other language is a better alternative to machine code for programmers and why?

A

Assembly language because it helps in writing the program with comments and symbolic names for constants, macros and subroutines can be used more often in the code.

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

What instructions does the assembly language need to tell the assembler how to convert the code in machine code?

A

Directives and system calls

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

What are addressing modes?

A

Addressing modes are the ways of identifying the value that is to be written to the register.

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

How are the types of addressing modes identified

A

Immediate: the value to be used as it is in the instruction
Direct: An address which holds the value to be used in the instruction
Indirect: An address that holds the address of the value to be used in the instruction
Indexed: An address to which must be added what is currently in the Index Register (IX) to get the address that holds the value to be used in the instruction

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

In an instruction what can the operand be?

A

<address>
#n is a denary number, when it is direct addressing
</address>

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

Which are the data movement instructions?

A
LDM
    Immediate addressig
    #n
LDR
    Immediate addressig
    #n
LDD
    Dierct addressing
    <address>
LDI
    Indirect addressing
    <address>
LDX
    Indexed addressing
    <address>
STO
    Storing the contents of ACC
    <address></address></address></address></address>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which are the arithmetic instructions?

A
ADD
    Adds the contend of the ACC with the content from the address
    <address>
INC
    Increases value with 1

DEC
Decreases value with 1

</address>

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

Which are the comparisons and jumps instructions?

A

JMP
Jump to address
<address>
CMP
Compare ACC content with register content
<address>
CMP
Compare ACC cotent with n
#n
JPE
Jump to address if previous comparison was true
<address>
JPN
Jump to address if previous comparison was NOT true
<address></address></address></address></address>

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