Unit5test

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/36

flashcard set

Earn XP

Description and Tags

test

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

37 Terms

1
New cards

The microprocessor on which our hypothetical model and the ET-3400 are based in the ____ MPU

6800

2
New cards

The major difference in our hypothetical model and the 6800 MPU is that the latter has two ____

Accumulators

3
New cards

The program counter in the 6800 MPU has ___ bits

16

4
New cards

How wide is the address bus in a 6800-based microprocessor

16 bits wide

5
New cards

What is the range of address in the 6800 MPU

Addresses from 0000 to FFFF or 0000 to 65,535

6
New cards

List the six code flags

C, V, Z, N, I, H

carry, borrow

overflow

Zero

Negative

Interrupt mask

Half carry

7
New cards

Besides the program counter, what other 16-bits register are used in the 6800 MPU

Index register and stack pointer

8
New cards

In the 6800 MPU, does each accumulator have its own carry flag

No, the two accumulator share a common carry flag

9
New cards

list the seven general categories of instructions

Arithmetic, data holding, logic, data test, index register and stack pointer, jump and branch, condition code.

10
New cards

What is meant by the shorthand notation: A + B → A

This notation indicates that the value of B is added to A: transfer the result to accu Aand overwrite its original value.

11
New cards

How is the flag “C” affected by the “ADD” and “add with carry” instructions?

The C flag is set if a carry occurs, it is cleared otherwise.

12
New cards

Is the C flag changed when the AND instruction is executed?

No, C flag is unaffected by “AND” instruction

13
New cards

Explain the difference between the NEG instruction and the COM instruction.

COM replaces operand with its 1’s complement while NEG replaces it with its 2’s complement.

14
New cards

Explain the difference between the ANDA instruction and the BITA instruction

ANDA instruction places the result of AND operation in accu A. while BITA, the condition code register are set according to the result, but the result is not retained

15
New cards

The decimal adjust instruction is associated with which accumulator

Decimal adjust instruction works only with ACCU A

16
New cards

When the RORA instruction is executed the LSB of accu A is shifted into the ____ register

Carry

17
New cards

List eleven operation that can be performed directly to an operand in memory without first loading it into one of the MPU registers.

A byte in memory can be; cleared, incremented, decremented, complemented, negated, rotated left, rotated right, shifted left arithmetically, shifted right arithmetically, shifted right logically and tested.

18
New cards

Explain the difference between the SUBB instruction and the CMPB instruction

With the SUBB instruction, a difference is produced and placed in ACCU B. with CMPB, a flag is set as if a difference is produced but the difference is not retained.

19
New cards

List four types of logic operations that the 6800 MPU can perform

Complement, AND, inclusive OR, and Exclusive OR

20
New cards

When the LDX instruction is executed, from where is the index register loaded

The upper half of the index register is loaded from the specified memory location, the lower half from the byte following the specified memory location.

21
New cards

List four conditional branch instruction that are commonly used after a compare or subtract instruction to compare 2’s complement numbers.

BGE, BGT, BLE, BLT

22
New cards

Explain the difference between BGT and BBHI instructions

BGT is used to test the result of subtracting 2’s complement numbers. BHI is used to test the result of subtracting unsigned numbers.

23
New cards

What instruction is commonly used to fill a hole left in a program after an unwanted byte is removed?

NOP

24
New cards

Which instruction in the 6800 roughly correspond to the halt instruction in our hypothetical machine

WAI

25
New cards

Which of the condition code can be individually set or cleared?

C, I, V

26
New cards

When you have doubt as to exactly what operation is performed by a given instruction, where you can look to find the answer

Appendix A of this course

27
New cards

A disadvantage of direct addressing is that the operand must be in the first ___ bytes of memory

256

28
New cards

The advantage of direct addressing is that only ___ bytes are required for each instruction.

TWO

29
New cards

Extended addressing can address ___ bytes of memory

65, 536

30
New cards

A disadvantage of extended addressing is that each instruction requires ____ bytes

Three

31
New cards

Can extended addressing be used to address an operand in the first 256 bytes of memory

Yes, direct addressing is normally used when operand is in the first 256 bytes of memory but extended addressing can also be used.

32
New cards

The most powerful addressing mode available to the 6800 is called ____ addressing

Indexed

33
New cards

Indexed addressing requires _____ bytes for each instruction

two

34
New cards

The second byte of the indexed addressing instruction is called the ____ address

Offset

35
New cards

How is the address of the operand determined when indexed addressing is used

The offset address is added to the contents of the index register

36
New cards

How many MPU cycles are required by the INC, X instruction

Seven

37
New cards

How many bytes in the LDS # instruction

Three