Lecture 8 - Basic Instruction Remaining Instructions

Lecture 8 - Basic Instruction Remaining Instructions -...

Info icon This preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
ECE 265 – LECTURE 8 The M68HC11 Basic Instruction Set The remaining instructions 10/10/2010 1 ECE265
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Joanne E. DeGroat, OSU Lecture Overview The M68HC11 Basic Instruction Set Stack and index register instructions The remaining instructions classes are for program flow control Branch Instructions Jump Instructions Subroutine Calls No Operation Stop REF: Chapter 3 and the appendix that details the instructions. 10/10/2010 2 ECE265
Image of page 2
Joanne E. DeGroat, OSU Stack &Index register instructions These instructions allow manipulation of the index registers, X and Y, and exchange with the D accumulator. Additionally, they provide the ability to push and pop X and Y to/from the stack. This class of instructions can be further subdivided into sub-classes of the type of operation. 10/10/2010 ECE265 3
Image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Joanne E. DeGroat, OSU Modify value index reg or SP To modify the value of the index register Add B accumulator to X or Y: ABX ABY Decrement the register: DES (stack pointer) DEX DEY Increment the register: INS (stack pointer) INX INY INX and INY are only ones that affect CC register and then only the Z bit. 10/10/2010 ECE265 4
Image of page 4
Joanne E. DeGroat, OSU Data manipulation of contents Add the B accumulator to and index register ABX ABY Data testing of contents of index register CPX CPY There are compares to a 16-bit value in memory 10/10/2010 ECE265 5
Image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon