View Single Post
Old Oct 24th, 2007, 12:30 PM   #6
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Re: Help: Indexed addressing mode (MC68HC11A8)

I don't know if the datasheet for the MC68HC11A8 is part of your course material. If not, it would be very useful to you, and you can get it here.

The base device, the 6800, didn't have the addressing modes you have in this device. The direct mode is relatively limited; the extended mode is akin to what better micros of the time referred to as direct mode.

This device also borrowed the indexed addressing modes from the Z-80. It's the indexed modes that caused me to comment on the index+offset mode. While the addition of the two values is important, the sizes are different between the two portions. One part may be fixed in the instruction in some chips.

In the Z-80 the offset was fixed; only the index register could be incremented. That made it somewhat limited. If one were walking memory, one lost the base while incrementing the index register, thus requiring the base to be saved by pushing it onto the stack or storing it somewhere. The same is true in this chip.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote