Chapter 3.1.1 3.1.2
Chapter 3.1.1 3.1.2
long
difficult to
and understand
difficult
did not
specify the slow to key-in to
tasks we the computer
due to the input
perform one bit by one
require a bit at a time
computer.
To overcome these problems, easily remembered
code (mnemonic) was introduced.
It is apply with the use of Assembly Language
Assembly language (cont…)
• Assembly language is a symbolic representation of a machine
language of specific processor.
• Assembler as translator.
1 0 0 1 1 0 0 1 1 1 0101110101011101000101
Word
0101011101000101
Byte
01000101
Notations for Information Representation
DATA SIZE
• A single cell sized 1 bit can store either logic-0 or logic-
1.
• Thus the range of data is 0 – 1.
Data size: n = 1
Data capacity : 2n = 21 = 2
Range : 0 – 1
1 Bit 2 0–1
4 Nibble 16 0 - 15
8 Byte 256 0 – 255
16 Word 65536 0 – 65535
32 Long Word 4,294,967,296 0 - 4,294,967,295
REGISTER SET of MC68000
Internal Register – the
working element of µp.
MC68000 – an internal
32-bit processor
Register Set
8 data register (D0-D7)
7address register(A0-A6)
2 stack pointer(USP&SSP)
1 program counter (PC)
1 status register (SR)
DATA REGISTERS
• Consists of 8 general purpose registers
• D0 to D7
• Can used as SOURCE / DESTINATION in a instruction
• Can access as BYTE, WORD, LONGWORD
• Data manipulation can be done here
31 16 15 87
• E.g. add, subtract, multiply, divide 0
D0
D1
• Used to store 32-bit data D2
• Bit 0 is the smallest (LSB) D3
• Bit 31 is the largest (MSB) D4
D5
• Binary
• Octal
• Hexadecimal
• Decimal
• Character
Data type : binary
Data type : octal
Data type : hexadecimal
Data type : decimal
ASCII character
Data Type
% binary number
@ octal number
$ hexadecimal number
No sign decimal number
‘ ‘ ASCII code
Describe Addressing Modes Using
Proper Instruction Format
INSTRUCTION FORMAT