Professional Documents
Culture Documents
4.1 MC 68000
20-Jul-16
4.1 MC 68000
4.1 MC 68000
Has 68000 number for transistors
Size 6.24 by 7.14 mm
Clock speed (controlled by the clock generator): 4
MHz to 12.5 MHz
20-Jul-16
4.1 MC 68000
4.1 MC 68000
20-Jul-16
4.1 MC 68000
4.2 Memory
Has 16777216 memory slots
The address starts at 0x000000 to 0xFFFFFF
Or 0 to 167777215
Each memory slots can store 8 bits
So total memory is 16777216 * 8 bits = 16 MB
20-Jul-16
4.2 Memory
4.3 Register
20-Jul-16
4.3 Register
4.3 Register
MC 68000 available
registers
Also known as the 68000
Programmers Model
We will look at each type
in the following slides
20-Jul-16
20-Jul-16
20-Jul-16
20-Jul-16
10
20-Jul-16
4.5.1 No operand
4.5.2 One operand
4.5.3 Two operand
4.5.4 Branch instruction
11
20-Jul-16
4.5.1 No operand
<label> opcode<.field> <operands> <;comments>
12
20-Jul-16
13
20-Jul-16
4.5.4.1 BNE
The BNE instruction means that a statement
will always be executed until a condition is
met
<label> opcode<.field> <operands> <;comments>
LOOPY MOVE D1,D2
...
BNE LOOPY
4.5.4.2 BRA
The BRA instruction means that a statement
will always be executed. To stop the execution,
use another branching instruction like BNE
<label> opcode<.field> <operands> <;comments>
LOOPY MOVE D1,D2
...
BRA LOOPY
14
20-Jul-16
4.5.4.3 BEQ
The BEQ instruction means that a statement
will be executed if the condition is met
<label> opcode<.field> <operands> <;comments>
LOOPY MOVE D1,D2
...
BEQ LOOPY
4.5.4.4 BCC
The BCC instruction means that a statement
will be executed if the last statement
produced the carry bit (the C in XNZVC from
the Status Register in slide 18)
<label> opcode<.field> <operands> <;comments>
LOOPY MOVE D1,D2
...
BCC LOOPY
15
20-Jul-16
16
20-Jul-16
17
20-Jul-16
18
20-Jul-16
19
20-Jul-16
20
20-Jul-16
21
20-Jul-16
22
20-Jul-16
23
20-Jul-16
4.7.1 Introduction
The Assembly instruction that you type must
first be converted into object code before it
can be executed
The object code is in binary but for
convenience, it is shown in hexadecimal
format by the Assembler
The object code is shown in the next slide
24
20-Jul-16
4.7.1 Introduction
The image below shows the Assembly code MOVE.B #9,D0
It also shows the translated machine or object code but in hex
format that is ready to be executed by the processor (103C 0009)
If it were to be shown in binary, it will look like this:
0001 0000 0011 1100 0000 0000 0000 1001
As you can see, showing the object code in its true form (in binary)
is really inconvenient so the hex format is used instead
But the processor uses the binary format. The hex format is for
human representation only
25
20-Jul-16
26
20-Jul-16
27
20-Jul-16
28
20-Jul-16
These are the common instructions that are used during the final exam
The MOVE, MOVEA, and TRAP are the most basic ones and will always come out in
the exam
They are basic because they are used even in the most simplest of Assembly
programs. They are used in programs that are simple as a program that simply
displays the sentence Hello World!
So make sure that you are familiar with them
The list of common instructions are:
BRA
ADD
MOVE
MOVEA
SUBQ
TRAP
BCC
SUBI
29