Search code examples
assemblyx86-16addressing-mode

Register addressing mode vs Direct addressing mode


I encountered this question in a test paper. It stated, Which of the given addressing modes is faster? Why?

  1. Register addressing mode
  2. Direct addressing mode

Now according to me register addressing mode should be faster as register is the fastest memory location in the computer. Is this the correct answer to it?

Please help out. Thanks


Solution

  • Register accesses are the fastest. However, memory accesses can be as fast if the memory data that you're accessing is already in the CPU's data cache.