1. You might notice that some instructions use a # and others don't. # = number and [no hash] = address
2. The following code would load the number 10 into the accumulator, then adds the number 12, and then…
3. What is the difference between direct and immediate addressing?
4. What does the following assembly language code do?
5. Four different types of addressing are listed as follows. What is indirect addressing?
6. In index addressing, the address given is the base address. This is then added to the value in the index register
7. Immediate addressing means that the data has to be hard coded into the instruction itself.
8. Assuming ADC was the accumulator, the instruction to add 2 to the accumulator would be ADC 2
9. Relative addressing is when a small ___________is added to the current address in the program counter.
10. What is the result (fill in the ?) when the following code (note there are no hash tags) is executed?
11. A multi-core processor is an example of MIMD computing
12. What is the result when the following code is executed?
13. What goes in address 214?
14. Write some assembly code to do the following: 34 + 35 and store in memory location 100
15. Relative addressing means that the next instruction to be carried out is an offset number of locations away, relative to the address of the current instruction.
16. Indexed addressing means that the final address for the data is determined by adding an offset to a base address. Fill in the blanks
17. How does a programmer access the subroutines within the library if he does not know the starting address of each routine
18. The advantage of direct addressing is that it is fast (but not as fast as immediate addressing)
19. You could use direct addressing on computers that are only running a single program.
20. Instructions and data are located in memory by using addressing modes.
21. Immediate and direct addressing are basically the same thing.
22. In ___________ addressing the data in the operand is fixed - i.e it is immediately available for use.
23. In ____________ addressing the code is directly referred to a memory location.
24. _________ addressing is also called absolute addressing.
25. The following example: ADD (1302) which adds the contents of memory location (1302) to the accumulator is an example of:
26. The following example ADD 12 (adding 12 to the accumulator) is an example of:
27. This disadvantage of ???????..is that the code cannot be relocated; therefore it is typically used on single-program systems (e.g. car engine fuel control system)
28. The term addressing modes refers to the way in which the operand of an instruction is specified.
29. Immediate addressing is useful in accessing static data. (preferred over Direct addressing)
30. The effective address is a term that describes the address of an _________ that is stored in memory.