Stack Mode

From Intellivision Wiki
Revision as of 09:28, 4 December 2010 by Mr z (talk | contribs) (Protected "Stack Mode" ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite)))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Stack Mode is simply Indirect Mode via register R6, the stack pointer. GI documentation mentions stack mode separately for three reasons:

  • Reads via R6 decrement R6 prior to using its value. No other indirect reads have that behavior.
  • Reading an operand using Stack Mode takes 3 extra cycles.
  • The CP1610 does not officially support SDBD with Stack Mode.

Stack Mode instructions have the same encoding as Indirect Mode and Immediate Mode instructions.