参数资料
型号: MC68008
厂商: Motorola, Inc.
英文描述: 16-Bit Microprocessor(16位微处理器)
中文描述: 16位微处理器(16位微处理器)
文件页数: 182/184页
文件大小: 1006K
代理商: MC68008
第1页第2页第3页第4页第5页第6页第7页第8页第9页第10页第11页第12页第13页第14页第15页第16页第17页第18页第19页第20页第21页第22页第23页第24页第25页第26页第27页第28页第29页第30页第31页第32页第33页第34页第35页第36页第37页第38页第39页第40页第41页第42页第43页第44页第45页第46页第47页第48页第49页第50页第51页第52页第53页第54页第55页第56页第57页第58页第59页第60页第61页第62页第63页第64页第65页第66页第67页第68页第69页第70页第71页第72页第73页第74页第75页第76页第77页第78页第79页第80页第81页第82页第83页第84页第85页第86页第87页第88页第89页第90页第91页第92页第93页第94页第95页第96页第97页第98页第99页第100页第101页第102页第103页第104页第105页第106页第107页第108页第109页第110页第111页第112页第113页第114页第115页第116页第117页第118页第119页第120页第121页第122页第123页第124页第125页第126页第127页第128页第129页第130页第131页第132页第133页第134页第135页第136页第137页第138页第139页第140页第141页第142页第143页第144页第145页第146页第147页第148页第149页第150页第151页第152页第153页第154页第155页第156页第157页第158页第159页第160页第161页第162页第163页第164页第165页第166页第167页第168页第169页第170页第171页第172页第173页第174页第175页第176页第177页第178页第179页第180页第181页当前第182页第183页第184页
MOTOROLA
M68000 8-/16-/32-BIT MICROPROCESSORS USER’S MANUAL
A-1
APPENDIX A
MC68010 LOOP MODE OPERATION
In the loop mode of the MC68010, a single instruction is executed repeatedly under
control of the test condition, decrement, and branch (DBcc) instruction without any
instruction fetch bus cycles. The execution of a single-instruction loop without fetching an
instruction provides a highly efficient means of repeating an instruction because the only
bus cycles required are those that read and write the operands.
The DBcc instruction uses three operands: a loop counter, a branch condition, and a
branch displacement. When this instruction is executed in the loop mode, the value in the
low-order word of the register specified as the loop counter is decremented by one and
compared to minus one. If the result after decrementing the value is equal to minus one,
the result is placed in the loop counter, and the next instruction in sequence is executed.
Otherwise, the condition code register is checked against the specified branch condition. If
the branch condition is true, the result is discarded, and the next instruction in sequence is
executed. When the count is not equal to minus one and the branch condition is false, the
branch displacement is added to the value in the program counter, and the instruction at
the resulting address is executed.
Figure A-1 shows the source code of a program fragment containing a loop that executes
in the loop mode in the MC68010. The program moves a block of data at address
SOURCE to a block starting at address DEST. The number of words in the block is
labeled LENGTH. If any word in the block at address SOURCE contains zero, the move
operation stops, and the program performs whatever processing follows this program
fragment.
LOOP
LEA
LEA
MOVE.W
MOVE.W
DBEQ
SOURCE, A0
DEST, A1
#LENGTH, D0
(A0);pl, (A1)+
D0, LOOP
Load A Pointer To Source Data
Load A Pointer To Destination
Load The Counter Register
Loop To Move The Block Of Data
Stop If Data Word Is Zero
Figure A-1. DBcc Loop Mode Program Example
The first load effective address (LEA) instruction loads the address labeled SOURCE into
address register A0. The second instruction, also an LEA instruction, loads the address
labeled DEST into address register A1. Next, a move data from source to destination
(MOVE) instruction moves the number of words into data register D0, the loop counter.
The last two instructions, a MOVE and a test equal, decrement, and branch (DBEQ), form
the loop that moves the block of data. The bus activity required to execute these
instructions consists of the following cycles:
相关PDF资料
PDF描述
MC68010 16-/32-Bit Microprocessor(16/32位微处理器)
MC6805R3 8-Bit Microcontroller Units (MCU).(8位微控制器)
MC68A21CL PERIPHERAL INTERFACE ADAPTER
MC68A21CP PERIPHERAL INTERFACE ADAPTER
MC68A21CS PERIPHERAL INTERFACE ADAPTER
相关代理商/技术参数
参数描述
MC6800CL 制造商:MOTOROLA 制造商全称:Motorola, Inc 功能描述:8-BIT MICROPROCESSING UNIT (MPU)
MC6800CP 制造商:MOTOROLA 制造商全称:Motorola, Inc 功能描述:8-BIT MICROPROCESSING UNIT (MPU)
MC6800CS 制造商:MOTOROLA 制造商全称:Motorola, Inc 功能描述:8-BIT MICROPROCESSING UNIT (MPU)
MC6800L 制造商:MOTOROLA 制造商全称:Motorola, Inc 功能描述:8-BIT MICROPROCESSING UNIT (MPU)
MC6800P 制造商:Motorola Inc 功能描述: