Motorola M68000 Instrukcja Użytkownika

Przeglądaj online lub pobierz Instrukcja Użytkownika dla Nie Motorola M68000. MOTOROLA M68000 FAMILY Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 92
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 0
MOTOROLA INC., 1992
MOTOROLA
M68000 FAMILY
Programmer’s Reference Manual
(Includes CPU32 Instructions)
Przeglądanie stron 0
1 2 3 4 5 6 ... 91 92

Podsumowanie treści

Strona 1 - M68000 FAMILY

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

Strona 2

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

Strona 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

Strona 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

Strona 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

Strona 6

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

Strona 7

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

Strona 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

Strona 9

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

Strona 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

Strona 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

Strona 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

Strona 13

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

Strona 14

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

Strona 15

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

Strona 16

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

Strona 17

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

Strona 18

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

Strona 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

Strona 20

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

Strona 21

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

Strona 22

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

Strona 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

Strona 24

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

Strona 25

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

Strona 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

Strona 27

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

Strona 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

Strona 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

Strona 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-

Strona 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

Strona 32

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

Strona 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

Strona 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

Strona 35

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

Strona 36

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

Strona 37

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

Strona 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

Strona 39 - Instruction Set Summary

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

Strona 40

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

Strona 41

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

Strona 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

Strona 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

Strona 44

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

Strona 45 - MODE REGISTER

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

Strona 46

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

Strona 47

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

Strona 48 - Add Address

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

Strona 49 - (M68000 Family)

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

Strona 50 - Add Immediate

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

Strona 51 - ADDI Add Immediate ADDI

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

Strona 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

Strona 53

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

Strona 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

Strona 55

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

Strona 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

Strona 57

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

Strona 58

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

Strona 59 - ANDI AND Immediate ANDI

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

Strona 60

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

Strona 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

Strona 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

Strona 63

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

Strona 64

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

Strona 65

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

Strona 66 - Branch Conditionally Bcc

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

Strona 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

Strona 68 - CMP Compare CMP

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

Strona 69

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

Strona 70 - CMPA Compare Address CMPA

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

Strona 71

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

Strona 72 - CMPI Compare Immediate CMPI

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

Strona 73

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

Strona 74 - CMPM Compare Memory CMPM

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

Strona 75 - Integer Instructions

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

Strona 76

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

Strona 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

Strona 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

Strona 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

Strona 80

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

Strona 81

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

Strona 82

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

Strona 83

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

Strona 84

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

Strona 85 - MOVEA Move Address MOVEA

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

Strona 86

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

Strona 87

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

Strona 88 - Return from Subroutine RTS

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

Strona 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

Strona 90 - (Continued)

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

Strona 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

Strona 92

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

Komentarze do niniejszej Instrukcji

Brak uwag