Addressing Modes
68000 Microprocessor 68000
Addressing Modes
Aims
To review 68000 data transfer instructions and applying the more advanced addressing modes.
Intended Learning Outcomes
At the end of this module, students should be able to
Understand:
Address register indirect addressing modes (4 variations) Program Counter addressing modes (2 variations)
At the beginning we review some of the addressing modes:
Register indirect addressing mode Immediate addressing mode Absolute long addressing mode Inherent addressing mode
Dr. Izzeldin Ibrahim
4-2
68000 Microprocessor 68000
68000 Addressing Modes
The 68000 Addressing Modes are:
Register Direct Group
Data Register Direct* Address Register Direct*
Immediate* Address Register Indirect Group
Address Register Indirect* Address Register Indirect with Postincrement Address Register Indirect with Predecrement Address Register Indirect with Displacement Address Register Indirect with Index
Absolute Group*
Absolute Short* Absolute Long*
Program Counter Relative Group
Program Counter with Displacement Program Counter with Index
Implicit*
* Already covered
Dr. Izzeldin Ibrahim
4-3
68000 Microprocessor 68000
Review: ARI Examples
•Register Indirect: accesses the contents of the memory location in the indicated register. Registers D2 AABB CC12 MOVE.B (A0), D2 D3 A0 FFFF EEEE 0000 2000
Registers D2 AABB CCDD D3 A0 FFFF EEEE 0000 2000 MOVE.W (A0), D2
Registers D2 AABB 1234 D3 A0 FFFF EEEE 0000 2000
Memory 002000 002002 002004
1234 5678 ABCD MOVE.L (A0), D2
Registers D2 1234 5678 D3 A0 FFFF EEEE 0000 2000
4-4
Dr. Izzeldin Ibrahim
68000 Microprocessor 68000
Review: Immediate Addressing Mode Examples
•Immediate: an actual number X is provided. MOVE.B #12, D2 Registers D2 AABB CC0C D3 A0 FFFF EEEE 0000 2000
Registers D2 AABB CCDD D3 A0 FFFF EEEE 0000 2000 MOVE.W #$12, D2
Registers D2 AABB 0012 D3 A0 FFFF EEEE 0000 2000