Lecture 8 - Basic Instruction Remaining Instructions

Lecture 8 - Basic Instruction Remaining Instructions -...

Info iconThis 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
Background image of page 1

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

View Full DocumentRight 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
Background image of page 2
Joanne E. DeGroat, OSU 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
Background image of page 3

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

View Full DocumentRight 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
Background 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
Background image of page 5

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

View Full DocumentRight Arrow Icon
Joanne E. DeGroat, OSU Move the X and Y index registers Push them on the stack – copy the value in the register to the top of the stack. The register stays the same value.
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/01/2012 for the course ECE 265 taught by Professor N /a during the Fall '08 term at Ohio State.

Page1 / 22

Lecture 8 - Basic Instruction Remaining Instructions -...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online