1. Operands and Branches

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/8

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 4:01 PM on 5/10/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

9 Terms

1
New cards
What are the standard sizes for floating-point operands?

Floating-Point Operands:

  • Single precision = 4B

  • Double precision = 8B

2
New cards
What are the components of a floating-point number and its representation formula?

A floating-point number consists of:

  • Mantissa (also called significand)
  • Exponent

Floating-point representation: Floating Point Number=Mantissa×2ExponentFloating\ Point\ Number = Mantissa \times 2^{Exponent}

Example: 0.625=5×230.625 = 5 \times 2^{-3}

3
New cards
What are the four common types of control flow changes?

Types of Control Flow Changes:

  • Conditional branches

  • Jumps

  • Procedure calls

  • Procedure returns

4
New cards
How is the target address calculated in PC-Relative Addressing?

PC-Relative Addressing calculation: Target Address=PC+OffsetTarget\ Address = PC + Offset

5
New cards
What are Register-Indirect Jumps and when are they useful?

Register-Indirect Jumps:

  • Target address is stored in a register.

Useful when:

  • Target address is unknown at compile time (will be loaded in later)

  • Return functions, case statements

  • Target too far for PC displacement

6
New cards
What are the three methods for implementing branches?

Methods for branches:

  • Compare and branch

  • Condition register

  • Condition code

7
New cards
How does the Compare and Branch method function?

Compare and Branch:

  • Performs a comparison.

  • Branch decision depends on comparison result.

  • No need for register use but more work per instruction.

8
New cards
How does the Condition Register method function?

Condition Register:

  • Performs a comparison.

  • Result saved in register.

  • Branch occurs if register contains: 0or10 \quad \text{or} \quad 1

  • Simple but wasteful.

9
New cards
What is the Condition Code (CC) method?

Condition Code (CC):

  • Uses bits stored in a special purpose Condition Code (CC) register.

  • Has special properti