Table 1: Mnemonics Operations Dictionary. Add Accumulators Add B to Y. Add with carry to B. Add Memory to B. Add 16-bit to D And B with Memory

Similar documents
The Motorola 68HC11 Instruc5on Set

Programming the Motorola MC68HC11 Microcontroller

Addressing Mode Description Addressing Mode Source Format Abbrev. Description

SECTION 6 CENTRAL PROCESSING UNIT

Department of Computer Science and Engineering

Disassembly of an HC12 Program It is sometimes useful to be able to convert HC12 op codes into mnemonics. For example, consider the hex code:

Menu. Programming Models for the Atmel XMEGA Architecture (and others devices) Assembly Programming Addressing Modes for the XMEGA Instruction Set

Lecture 6 Assembly Programming: Branch & Iteration

EE319K Fall 2007 Quiz 1A Page 1. (5) Question 2. What will be the value of the carry (C) bit after executing the following? ldab #210 subb #60

2) [ 2 marks] Both of the following statements cause the value $0300 to be stored in location $1000, but at different times. Explain the difference.

Chapter 2: HCS12 Assembly Programming. EE383: Introduction to Embedded Systems University of Kentucky. Samir Rawashdeh

Assembly Language Development Process. ECE/CS 5780/6780: Embedded System Design. Assembly Language Listing. Assembly Language Syntax

Administrivia. ECE/CS 5780/6780: Embedded System Design. Assembly Language Syntax. Assembly Language Development Process

ECE/CS 5780/6780: Embedded System Design

ECE331 Handout 3- ASM Instructions, Address Modes and Directives

ECET Chapter 2, Part 3 of 3

EE319K Fall 2006 Quiz 1 Page 1

EE319K Fall 2003 Quiz 1 Page 1

EE319K Fall 2005 Quiz 1A Page 1

EE 3170 Microcontroller Applications

0b) [2] Can you name 2 people form technical support services (stockroom)?

Reading Assignment. 68HC12 Instruction Set. M68HC12 Instruction Set Categories. Some Tips. Endianness (Byte Order) Load and Store Instructions

Lecture 7 Assembly Programming: Shift & Logical

EE4390 Microprocessors

instruction 1 Fri Oct 13 13:05:

COE538 Lecture Notes Week 3 (Week of Sept 17, 2012)

(5) Question 7. Simplified memory cycles (you may or may not need all 5 entries) R/W Addr Data

The 6502 Instruction Set

Chapter 2 HCS12 Assembly Language

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-470/570: Microprocessor-Based System Design Fall 2014.

Condition Code Register. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

EE319K Fall 2010 Exam 1B Page 1

Disassembly of MC9S12 op codes Decimal, Hexadecimal and Binary Numbers

Disassembly of MC9S12 op codes Decimal, Hexadecimal and Binary Numbers

EE319K Spring 2010 Exam 1A Page 1

68HC11 PROGRAMMER'S MODEL

538 Lecture Notes Week 3

MC9S12 Assembler Directives A Summary of MC9S12 Instructions Disassembly of MC9S12 op codes. Summary of HCS12 addressing modes ADDRESSING MODES

C SC 230 Computer Architecture and Assembly Language April 2000 Exam Sample Solutions

HC11 Instruction Set

CS 273 Machine Programming and Organization Lecture Notes

2. Arithmetic Instructions addition, subtraction, multiplication, divison (HCS12 Core Users Guide, Sections 4.3.4, and ).

COSC 243. Instruction Sets And Addressing Modes. Lecture 7&8 Instruction Sets and Addressing Modes. COSC 243 (Computer Architecture)

Fri. Aug 25 Announcements

Timing Generation and Measurements

538 Lecture Notes Week 3

EE 3170 Microcontroller Applications

AN1064. Motorola Semiconductor Application Note. Use of Stack Simplifies M68HC11 Programming By Gordon Doughman. Introduction

Sample Problem Set #1

Lecture 9 Subroutines

Motorola HC11. Fun with Microcontrollers and Embedded Systems

CPU08RM/AD REV 3 8M68HC08M. CPU08 Central Processor Unit. Reference Manual

Accumulator and memory instructions 1. Loads, stores, and transfers 2. Arithmetic operations 3. Multiply and divide 4. Logical operations 5. Data test

Exam 2 E2-1 Fall Name: Exam 2

Motorola 6809 and Hitachi 6309 Programmer s Reference

Transporting M68HC11 Code to M68HC12 Devices

7.5 HCS08 Instruction Set Summary

Outline. 2.8 Stack. 2.9 Subroutines

538 Lecture Notes Week 2

EE319K Fall 2006 Final A Page 1

Caution: Make sure to follow the wiring diagram (last pages) as shown.

EE 3170 Microcontroller Applications

CHAPTER 8. Solutions for Exercises

Exam 2 E2-1 Fall Name: Exam 2

EE 308 Spring The HCS12 has 6 addressing modes

ECE 372 Microcontroller Design Assembly Programming. ECE 372 Microcontroller Design Assembly Programming

PROGRAMMING THE MICROCONTROLLER

A. CPU INSTRUCTION SET SUMMARY

Introduction to Embedded Microcomputer Systems Lecture 8.1. Computers in the future may weigh no more than 1.5 tons Popular Science, 1949

EECE416 :Microcomputer Fundamentals and Design Instruction Sets and Groups

COSC345 Software Engineering. Basic Computer Architecture and The Stack

Regarding the change of names mentioned in the document, such as Mitsubishi Electric and Mitsubishi XX, to Renesas Technology Corp.

ECE 3120 Computer Systems Arithmetic Programming

Exam I Review February 2017

MIGRATING TO THE 68HC12 IN C

Using the stack and the stack pointer

Module 1-G. Marcos and Structured Programming

EE319K Fall 2007 Quiz 3 Page 1 of 8

BRANCH IF REGISTER IS HIGHER/GREATHER/ THAN OPERAND e.g. CMPA #$D0

Coe538 Final Study Guide 2016 (Questions & Answers)

* COMPILER CONSTANTS * ***********************************************************************************

Introduction to Microcontroller. Systems. Embedded system. Assembler or C? Datatypes 2. Datatypes 1

Decimal, Hexadecimal and Binary Numbers Writing an assembly language program

HC 11 Instructions! From Alex Hollowayʼs notes with! many thanks!

Microcontrollers and Embedded Systems. Fun with Motorola/Freescale HC11

RCX internals (Revised February 24)

HC11 Instruction Set Architecture

Lab 7: Asynchronous Serial I/O

CET335 Microprocessor Interfacing Lab 5: LCD Interface (Bus Attached Peripheral)

HC11 Instruction Set Architecture

ECET Chapter 2, Part 2 of 3

Gator uprocessor Summa Cum Laude Thesis Sopagna Kheang Bachelor of Science in Computer Engineering Fall 2007

ME 6405 Introduction to Mechatronics

Motorola Semiconductor Technical Data. CPU12 Reference Guide. Figure 1. Programming Model. Order this document by CPU12RG/D Rev. 1

ECE/CE 3720: Embedded System Design

1 Execution of main program is suspended. 2 All registers are pushed onto the stack. 3 The ISR, or background thread, is executed.

Ryerson University Department of Electrical and Computer Engineering ELE 538 Microprocessor Systems Final Examination December 8, 2003

ME4447/6405. Microprocessor Control of Manufacturing Systems and Introduction to Mechatronics. Instructor: Professor Charles Ume LECTURE 7

ARM Assembly Language. Programming

10-1 C D Pearson Education, Inc. M. Morris Mano & Charles R. Kime LOGIC AND COMPUTER DESIGN FUNDAMENTALS, 4e

Transcription:

Table 1: Mnemonics s Dictionary ABA ABX ABY ADCA ADCB ADDA ADDB ADDD ANDA ANDB ASL ASLA ASLB ASLD ASR ASRA ASRB BCC BCLR BCS BEQ BGE BGT BHI BHS BITA BITB BLE BLO BLS BLT Add Accumulators Add B to X Add B to Y Add with carry to A Add with carry to B Add memory to A Add Memory to B Add 16-bit to D And A with Memory And B with Memory Arithmetic Shift Left Arithmetic Shift Left A Arithmetic Shift Left B Arithmetic Shift Left D Arithmetic Shift Right Arithmetic Shift Right A Arithmetic Shift Right B Branch if Carry Clear Clear Bit(s) Branch if Carry Set Branch if = Zero Branch if >= Zero Branch if >Zero Branch if Higher Branch if Higher or Same Bit(s) Test A with Memory Bit(s) Test B with Memory Branch if <= Zero Branch if Lower Branch if Lower or Same Branch if < Zero 1

Table 2: Mnemonics s Dictionary cont.) BMI BNE BPL BRA BRCLR BRN BRSET BSET BSR BVC BVS CBA CLC CLI CLR CLRA CLRB CLV CMPA CMPB COM COMA COMB CPD CPX CPY DAA DEC Branch if Minus Branch if not = Zero Branch if Plus Branch Always Branch if Bit(s) Clear Branch Never Branch if Bit(s) Set Set Bit(s) Branch to Subroutine Branch if Overflow Clear Branch if Overflow Set Compare A to B Carry Bit Clear Interrupt Mask Clear Memory Byte Clear Accumulator A Clear Accumulator B Clear Overflow Flag Compare A to Memory Compare B to Memory Ones Complement Memory Byte Ones Complement A Ones Complement B Compare D to Memory 16-Bit Compare X to Memory 16-Bit Compare Y to Memory 16-Bit Decimal Adjust A Decrement Memory Byte 2

Table 3: Mnemonics s Dictionary cont.) DECA Decrement Accumulator A DECB Decrement Accumulator B DES Decrement Stack Pointer DEX Decrement Index Register X DEY Decrement Index Register Y EORA Exclusive OR A with Memory EORB Exclusive OR B with Memory FDIV Fractional Divide 16 by 16 IDIV Integer Divide 16 by 16 INC Increment Memory Byte INCA Increment Accumulator A INCB Increment Accumulator B INS Increment Stack Pointer INX Increment Index Register X INY Index Register Y JMP Jump JSR Jump to Subroutine LDAA Load Accumulator A LDAB Load Accumulator B LDD Load Double Accumulator D LDS Load Stack Pointer LDX Load Index Register X LDY Load Index Register Y LSL Logical Shift Left LSLA Logical Shift Left A LSLB Logical Shift Left B LSLD Logical Shift Left D LSR Logical Shift Right LSRA Logical Shift Right A LSRB Logical Shift Right B LSRD Logical Shift Right D 3

Table 4: Mnemonics s Dictionary cont.) MUL Multiply 8 by 8 NEG Two s Complement Memory Byte NEGA Two s Complement A NEGB Two s Complement B NOP No ORAA OR Accumulator A (Inclusive) ORAB OR Accumulator B (Inclusive) PSHA Push A onto Stack PSHB Push B onto Stack PSHX Push X onto Stack PSHY Push Y onto Stack PULA Pull A from Stack PULB Pull B from Stack PULX Pull X from Stack PULY Pull Y from Stack ROL Rotate Left ROLA Rotate Left A ROLB Rotate Left B ROR Rotate Right RORA Rotate Right A RORB Rotate Right B RTI Return from Interrupt RTS Return from Subroutine SBA Subtract B from A SBCA Subtract with Carry from A SBCB Subtract with Carry from B SEC Set Carry SEI Set Interrupt Mask SEV Set Overflow Flag STAA Store Accumulator A STAB Store Accumulator B 4

Table 5: Mnemonics s Dictionary cont.) STD STOP STS STX STY SUBA SUBB SUBD SWI TAB TAP TBA TEST TPA TST TSTA TSTB TSX TSY TXS TYS WAI XGDX XGDY Store Accumulator D Stop Internal Clocks Store Stack Pointer Store Index Register X Store Index Register Y Subtract Memory from A Subtract Memory from B Subtract Memory from D Software Interrupt Transfer A to B A to CC Register Transfer B to A TEST (Only in Test Modes) Transfer CC Register to A Test for Zero or Minus Test A for Zero or Minus Test B for Zero or Minus Transfer Stack Pointer to X Transfer Stack Pointer to Y X to Stack Pointer Transfer Y to Stack Pointer Wait for Interrupt Exchange D with X Exchange D with Y 5