Motorola M68000 Manuale Utente

Navigare online o scaricare Manuale Utente per no Motorola M68000. MOTOROLA M68000 FAMILY Manuale Utente

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 92
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 0
MOTOROLA INC., 1992
MOTOROLA
M68000 FAMILY
Programmer’s Reference Manual
(Includes CPU32 Instructions)
Vedere la pagina 0
1 2 3 4 5 6 ... 91 92

Sommario

Pagina 1 - M68000 FAMILY

 MOTOROLA INC., 1992 MOTOROLAM68000 FAMILY Programmer’s Reference Manual (Includes CPU32 Instructions)

Pagina 2

Addressing Capabilities MOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 2-3 For effective addresses that use a full extension word format, the i

Pagina 3 - 1.1.3 Program Counter

Addressing Capabilities 2-4 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLA 2.2 EFFECTIVE ADDRESSING MODES Besides the operation code, which sp

Pagina 4

Addressing Capabilities MOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 2-5 2.2.1 Data Register Direct Mode In the data register direct mode, t

Pagina 5 - Introduction

Addressing Capabilities 2-6 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLA 2.2.4 Address Register Indirect with Postincrement Mode In the addr

Pagina 6

Addressing Capabilities MOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 2-7 2.2.5 Address Register Indirect with Predecrement Mode In the addre

Pagina 7

Addressing Capabilities 2-8 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLA 2.2.6 Address Register Indirect with Displacement Mode In the addre

Pagina 8 - ADDRESSING CAPABILITIES

Addressing Capabilities MOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 2-9 2.2.7 Address Register Indirect with Index (8-Bit Displacement) Mode

Pagina 9

Addressing Capabilities 2-10 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLA 2.2.8 Address Register Indirect with Index (Base Displacement) Mode

Pagina 10

Addressing Capabilities MOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 2-11 2.2.9 Memory Indirect Postindexed Mode In this mode, both the oper

Pagina 11

Addressing Capabilities 2-12 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLA 2.2.10 Memory Indirect Preindexed Mode In this mode, both the oper

Pagina 12 - POINTS TO

Introduction 1-2 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLA 1.1 INTEGER UNIT USER PROGRAMMING MODEL Figure 1-1 illustrates the integer por

Pagina 13

Addressing Capabilities MOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 2-13 2.2.11 Program Counter Indirect with Displacement Mode In this mod

Pagina 14

Addressing Capabilities 2-14 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLA 2.2.12 Program Counter Indirect with Index (8-Bit Displacement) Mod

Pagina 15

Addressing Capabilities MOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 2-15 2.2.13 Program Counter Indirect with Index (Base Displacement) Mode

Pagina 16

Addressing Capabilities 2-16 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLA 2.2.14 Program Counter Memory Indirect Postindexed Mode This mode

Pagina 17

Addressing Capabilities MOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 2-17 2.2.15 Program Counter Memory Indirect Preindexed Mode This mode i

Pagina 18

Addressing Capabilities 2-18 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLA 2.2.16 Absolute Short Addressing Mode In this addressing mode, the

Pagina 19

Addressing Capabilities MOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 2-19 2.2.18 Immediate Data In this addressing mode, the operand is in o

Pagina 20

Addressing Capabilities 2-20 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLA Table 2-4. Effective Addressing Modes and Categories Addressing Mod

Pagina 21

Addressing Capabilities2-28 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLA2.6 OTHER DATA STRUCTURES Stacks and queues are common data structures

Pagina 22

Addressing CapabilitiesMOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 2-29To implement stack growth from low memory to high memory, use (An) + t

Pagina 23

Introduction MOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 1-3 1.1.3 Program Counter The PC contains the address of the instruction currently

Pagina 24

Addressing Capabilities2-30 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLAAfter a put operation, the put address register points to the last ite

Pagina 25

MOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 3-1 SECTION 3INSTRUCTION SET SUMMARY This section briefly describes the M68000 family instructio

Pagina 26 - 2.2.18 Immediate Data

Instruction Set Summary 3-2 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLA Table 3-1. Notational Conventions Single- And Double Operand Operati

Pagina 27

Instruction Set Summary MOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 3-3 Table 3-1. Notational Conventions (Continued) Data Format And Type +

Pagina 28 - 2.6.1 System Stack

Instruction Set Summary 3-4 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLA Table 3-1. Notational Conventions (Concluded) Register Codes * Gener

Pagina 29 - 2.6.2 Queues

Instruction Set Summary MOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 3-5 3.1.1 Data Movement Instructions The MOVE and FMOVE instructions wi

Pagina 30 - Addressing Capabilities

Instruction Set Summary 3-6 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLA NOTE: A register list includes any combination of the eight floating-

Pagina 31 - INSTRUCTION SET SUMMARY

Instruction Set Summary MOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 3-7 A set of extended instructions provides multiprecision and mixed-siz

Pagina 32

Instruction Set Summary3-8 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLA3.1.3 Logical Instructions The logical operation instructions (AND, OR,

Pagina 33

Instruction Set SummaryMOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 3-9NOTE: X indicates the extend bit and C the carry bit in the CCR.Table 3

Pagina 34

Introduction 1-4 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLA C—Carry Set if a carry out of the most significant bit of the operand occurs for

Pagina 35

Instruction Set SummaryMOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 3-173.2 INTEGER UNIT CONDITION CODE COMPUTATION Many integer instructions

Pagina 36

Instruction Set Summary3-18 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLATable 3-18. Integer Unit Condition Code Computations OperationsXNZVCS

Pagina 37

Instruction Set SummaryMOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 3-19NOTES:N = Logical Not NV = Logical Not VZ = Logical Not Z*Not availabl

Pagina 38 - 3.1.3 Logical Instructions

Instruction Set Summary3-32 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLA3.7 INSTRUCTION DESCRIPTIONSSection 4, 5, 6, and 7 contain detailed in

Pagina 39 - Instruction Set Summary

Instruction Set SummaryMOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 3-33.Figure 3-3. Instruction Description FormatABCDOperation:AssemblerS

Pagina 40

Integer Instructions 4-4 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLA ADD Add ADD (M68000 Family) Operation: Source + Destination → Destin

Pagina 41

Integer Instructions MOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 4-5 ADD Add ADD (M68000 Family) Instruction Fields: Register field—Specifie

Pagina 42 - Table 3-19. Conditional Tests

Integer Instructions 4-6 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLA ADD Add ADD (M68000 Family) b. If the location specified is a destina

Pagina 43 - 3.7 INSTRUCTION DESCRIPTIONS

Integer Instructions MOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 4-7 ADDA Add Address ADDA (M68000 Family) Operation: Source + Destination

Pagina 44

Integer Instructions 4-8 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLA ADDA Add Address ADDA (M68000 Family) Effective Address field—Specifies

Pagina 45 - MODE REGISTER

IntroductionMOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 1-251.7 ORGANIZATION OF DATA IN REGISTERS The following paragraphs describe data orga

Pagina 46

Integer Instructions MOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 4-9 ADDI Add Immediate ADDI (M68000 Family) Operation: Immediate Data + De

Pagina 47

Integer Instructions4-10 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLAADDI Add Immediate ADDI (M68000 Family) Instruction Fields: Size field—Spe

Pagina 48 - Add Address

Integer InstructionsMOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 4-11ADDQ Add Quick ADDQ (M68000 Family) Operation: Immediate Data + Destinati

Pagina 49 - (M68000 Family)

Integer Instructions4-12 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLAADDQ Add Quick ADDQ (M68000 Family) Instruction Fields: Data field—Three b

Pagina 50 - Add Immediate

Integer InstructionsMOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 4-13ADDX Add Extended ADDX (M68000 Family) Operation: Source + Destination +

Pagina 51 - ADDI Add Immediate ADDI

Integer Instructions4-14 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLAADDX Add Extended ADDX (M68000 Family) Instruction Format: Instruction Fi

Pagina 52 - ADDQ Add Quick ADDQ

Integer InstructionsMOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 4-15AND AND Logical AND(M68000 Family) Operation: Source L Destination → Dest

Pagina 53

Integer Instructions4-16 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLAAND AND Logical AND (M68000 Family) Effective Address field—Determines add

Pagina 54 - ADDX Add Extended ADDX

Integer InstructionsMOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 4-17AND AND Logical AND (M68000 Family) b. If the location specified is a des

Pagina 55

Integer Instructions4-18 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLAANDI AND Immediate ANDI (M68000 Family) Operation: Immediate Data Λ Desti

Pagina 56 - AND AND Logical AND

Introduction1-26 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLA.Because address registers and stack pointers are 32 bits wide, address registers

Pagina 57

Integer InstructionsMOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 4-19ANDI AND Immediate ANDI (M68000 Family) Instruction Fields: Size field—Spe

Pagina 58

Integer Instructions4-20 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLAANDI ANDI to CCR CCR AND Immediate to CCR(M68000 Family) Operation: Sourc

Pagina 59 - ANDI AND Immediate ANDI

Integer InstructionsMOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 4-21ASL, ASR Arithmetic Shift ASL, ASR(M68000 Family) Operation: Destination

Pagina 60

Integer Instructions4-22 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLAASL, ASR Arithmetic Shift ASL, ASR(M68000 Family) For ASR, the operand is

Pagina 61 - ANDI ANDI

Integer InstructionsMOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 4-23ASL, ASR Arithmetic Shift ASL, ASR (M68000 Family) dr field—Specifies the d

Pagina 62 - Arithmetic Shift ASL, ASR

Integer Instructions4-24 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLAASL, ASR Arithmetic Shift ASL, ASR (M68000 Family) Effective Address field

Pagina 63

Integer InstructionsMOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 4-25Bcc Branch Conditionally Bcc (M68000 Family) Operation: If Condition Tru

Pagina 64

Integer Instructions4-26 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLABcc Branch Conditionally Bcc (M68000 Family) Instruction Format: Instruct

Pagina 65

Integer InstructionsMOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 4-75CMP Compare CMP (M68000 Family) Operation: Destination – Source → cc Asse

Pagina 66 - Branch Conditionally Bcc

Integer Instructions4-76 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLACMP Compare CMP (M68000 Family) Effective Address field—Specifies the sourc

Pagina 67 - Bcc Branch Conditionally Bcc

IntroductionMOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 1-27Control registers vary in size according to function. Some control registers have

Pagina 68 - CMP Compare CMP

Integer InstructionsMOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 4-77CMPA Compare Address CMPA (M68000 Family) Operation: Destination – Source

Pagina 69

Integer Instructions4-78 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLACMPA Compare Address CMPA (M68000 Family) Instruction Fields: Register fie

Pagina 70 - CMPA Compare Address CMPA

Integer InstructionsMOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 4-79CMPI Compare Immediate CMPI (M68000 Family) Operation: Destination – Imme

Pagina 71

Integer Instructions4-80 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLACMPI Compare Immediate CMPI (M68000 Family) Instruction Fields: Size field

Pagina 72 - CMPI Compare Immediate CMPI

Integer InstructionsMOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 4-81CMPM Compare Memory CMPM (M68000 Family) Operation: Destination – Source

Pagina 73

Integer Instructions4-90 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLADBcc Test Condition, Decrement, and Branch DBcc (M68000 Family) Operation

Pagina 74 - CMPM Compare Memory CMPM

Integer InstructionsMOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 4-91DBcc Test Condition, Decrement, and Branch DBcc (M68000 Family) Instructi

Pagina 75 - Integer Instructions

Integer InstructionsMOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 4-109JSR Jump to Subroutine JSR (M68000 Family) Operation: SP – 4 → Sp; PC →

Pagina 76

Integer Instructions4-110 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLALEA Load Effective Address LEA (M68000 Family) Operation: < ea >

Pagina 77 - JSR Jump to Subroutine JSR

Integer InstructionsMOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 4-113LSL, LSR Logical Shift LSL, LSR (M68000 Family) Operation: Destination S

Pagina 78 - Load Effective Address LEA

MOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 2-1 SECTION 2ADDRESSING CAPABILITIES Most operations take asource operand and destination opera

Pagina 79 - Logical Shift LSL, LSR

Integer Instructions4-114 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLALSL, LSR Logical Shift LSL, LSR (M68000 Family) Condition Codes: X — Set

Pagina 80

Integer InstructionsMOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 4-115LSL, LSR Logical Shift LSL, LSR(M68000 Family) Instruction Format: MEMOR

Pagina 81

Integer Instructions4-116 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLAMOVE Move Data from Source to Destination MOVE (M68000 Family) Operation

Pagina 82

Integer InstructionsMOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 4-117MOVE Move Data from Source to Destination MOVE (M68000 Family) Destinati

Pagina 83

Integer Instructions4-118 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLAMOVE Move Data from Source to Destination MOVE (M68000 Family) Source Ef

Pagina 84

Integer InstructionsMOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 4-119MOVEA Move Address MOVEA (M68000 Family) Operation: Source → Destination

Pagina 85 - MOVEA Move Address MOVEA

Integer Instructions4-120 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLAMOVEA Move Address MOVEA (M68000 Family) Effective Address field—Specifies

Pagina 86

Integer Instructions4-168 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLARTR Return and Restore Condition Codes RTR (M68000 Family) Operation: (S

Pagina 87

Integer InstructionsMOTOROLA M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL 4-169RTS Return from Subroutine RTS (M68000 Family) Operation: (SP) → PC; SP

Pagina 88 - Return from Subroutine RTS

Processor Instruction SummaryA-12 MC68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLAA.1 MC68000, MC68008, MC68010 PROCESSORS The following paragrap

Pagina 89 - Mnemonic Description

Addressing Capabilities 2-2 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLA An instruction specifies the function to be performed with an operati

Pagina 90 - (Continued)

Processor Instruction SummaryMOTOROLA MC68000 FAMILY PROGRAMMER’S REFERENCE MANUAL A-13Table A-3. MC68000 and MC68008 Instruction Set (Continued)Mnemo

Pagina 91 - Table C-2. ASCII Code

S-Record Output Format MOTOROLA MC68000 FAMILY PROGRAMMER’S REFERENCE MANUAL C-5 Table C-2. ASCII Code LeastSignificantDigitMost Significant Digit 01

Pagina 92

S-Record Output Format MOTOROLA MC68000 FAMILY PROGRAMMER’S REFERENCE MANUAL C-5 Table C-2. ASCII Code LeastSignificantDigitMost Significant Digit 01

Commenti su questo manuale

Nessun commento