Unit 4 - Assembly language

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/11

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

12 Terms

1
New cards

Different stages for a two-pass assembler

  • Lines are read one at a time (1st and 2nd pass)

  • Comments are removed, remove white space, add labels to the symbol table (1st pass)

  • Check opcode is in the instruction set (1st pass)

  • Generate the object code (2nd pass)

2
New cards

Different groups in instruction sets

  • Data movement

  • Input and output of data

  • Arithmetic operations

  • Unconditional and conditional instructions

  • Compare instructions

3
New cards

Data movement

Data is moved or copied from register to another

4
New cards

Arithmetic operations

Perform addition and subtraction

5
New cards

Compare instructions

Compare the result to another value

6
New cards

Input and output of data

  • Takes an input from the user

  • Outputs the character of the binary number

7
New cards

Unconditional and conditional instructions

Move another instruction (identified by a label)

8
New cards

Immediate addressing

The operand(number enterred) is the actual value that is operated on

9
New cards

Direct addressing

The operand is the memory address where the value is held (the input is the address of the data to be used)

10
New cards

Indirect addressing

The address to be used is at the given address

  • The number entered is an address - this address holds the address of the data

11
New cards

Indexed addressing

Form the address from the given address plus the content of the index register

12
New cards

Relative addressing

The address to be used is an offset number of locations away, relative to the address of the current location