Flashcards
F453 Low Level Languages - Types Of Addressing
Cards in this deck (11)
- 1What type of addressing has the value to be used in the operand?Immediate, for example ADD 0011 could mean add 3 to the value in the accumulator.
- 2What are the disadvantages of immediate addressing?The value can not be reused between instructions, i.e the value would have to be repeated across every instruction that needs it. Also it is difficult to change the value.
- 3What type of addressing points to the location in memory that holds the data?Direct addressing.
- 4What is a limitation of direct addressing?The amount of memory addresses which can be utilised is dependent on the number of bits used for the operand of the instruction, e.g a 16 bit operand would allow 64kB of memory.
- 5What is indirect addressing?The operand points to a memory location which points to another memory location which contains the value.
- 6Why is indirect addressing useful?It allows access to a larger number of memory addresses.
- 7What is indexed addressing?A special register called the index register is used, this is incremented and added to a base address each time it is referred to.
- 8What data structure is indexed addressing most useful for?Arrays.
- 9What type of addressing uses an index register?Indexed addressing.
- 10What is relative addressing?All memory addresses are relative to a base address (the start of the program).
- 11Why is relative addressing required?We don't know where a program will be loaded into memory during execution, so all memory addresses would need to change. However the locations are still in the same place relative to the base address.
Information
- Description
- Flashcards on F453 Low Level Languages - Types Of Addressing, created by harvs899 on 05/05/2014.
- Created by
- harvs899
- Views
- 152
- Tags
- Rating