Preview

Addressing Modes

Satisfactory Essays
Open Document
Open Document
2106 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Addressing Modes
Module 4

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

You May Also Find These Documents Helpful

  • Good Essays

    A. the CPU tells the RAM which address holds the data that the CPU wants to read…

    • 957 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Cis 207 Week 2/3 Quiz

    • 383 Words
    • 2 Pages

    Registers are used to store data in RAM, the control unit, and the arithmetic logic unit. True…

    • 383 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    2. For direct-mapped cache, a main memory address is viewed as consisting of three fields. List and define the three fields.…

    • 1721 Words
    • 7 Pages
    Powerful Essays
  • Good Essays

    13.) What do you use to specify what bits are being used to lock a number into place?…

    • 641 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    En1320 Unit 1 Research Paper 1

    • 27742 Words
    • 111 Pages

    instructions to load the registers of the processor with data from a central memory and to…

    • 27742 Words
    • 111 Pages
    Powerful Essays
  • Satisfactory Essays

    Macro – A pattern that instructs how an input sequence should be mapped to coincide with a replacement input sequence.…

    • 437 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    The operating systems job is managing the memory. The operating system is in charge of bringing this process into main memory (Stallings, 2012). However the processor must deal with references within the program. Branch instructions include an address to reference the order to be executed next. Data reference instructions include the address of the byte or word of data referenced. The processor hardware and operating system software must be able to translate the memory references found in the code of the program into actual physical memory addresses, reflecting the current location of the program in main memory. (Stallings, 2012).…

    • 573 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    CS305 Final Exam Questions

    • 1044 Words
    • 6 Pages

    a. It decrements the stack pointer (by 2 or 4) and copies the operand into the stack at the location pointed to by the stack pointer.…

    • 1044 Words
    • 6 Pages
    Satisfactory Essays
  • Satisfactory Essays

    E4.6: The label array_x is the starting address of an array of 100 8bit elements.…

    • 900 Words
    • 4 Pages
    Satisfactory Essays
  • Better Essays

    In addition, assembly language allows programmers to utilize symbolic addresses to replace numeric memory addresses in binary bits to execute a command or input data. Computer specialist can link symbolic labels to an instruction or piece of data in the program. In other words, the symbolic label turns into a permanent tag for the instruction or piece of data disregarding where it populates in the program or where it relocates in the memory. However, machine language is more complicated. To perform an instruction or input data in the memory in a specific location, the computer specialist must specify the direct address. For example, “In machine language, to jump to the instruction stored in memory location 18, you must specify directly to address 18 (write JUMP…

    • 2002 Words
    • 9 Pages
    Better Essays
  • Satisfactory Essays

    (1) .model small .stack 100h .data dis1 db "Enter First Character:$" dis2 db "Enter Second Character:$" nme db "ASSEMBLY$" .code start: mov ax, @data mov ds, ax mov ah, 9h lea dx, dis1 int 21h mov ah, 1h int 21h mov bl, al mov ah, 2h mov dl, 0ah int 21h mov dl, 0dh int 21h mov ah, 9h lea dx, dis2 int 21h mov…

    • 1874 Words
    • 8 Pages
    Satisfactory Essays
  • Good Essays

    microprogram sequencer

    • 4951 Words
    • 20 Pages

    address generator memory means for producing during a current machine cycle period a first set of output signals including a first code set of signals designating a normal next input address for said address generator memory means;…

    • 4951 Words
    • 20 Pages
    Good Essays
  • Better Essays

    small negative number to fit into destination operand.  Direction Flag (DF) - if set then string manipulation instructions will auto-decrement index registers. If cleared then the index registers will be auto-incremented. Interrupt-enable Flag (IF) - setting this bit enables mask-able interrupts. Single-step Flag (TF) - if set then single-step interrupt will occur after the next instruction. Sign Flag (SF) - set if the most significant bit of the result is set. Zero Flag (ZF) - set if the result is zero. Auxiliary carry Flag (AF) - set if there was a carry from or borrow to bits 0-3 in the AL register. Parity Flag (PF) - set if parity (the number of "1" bits) in the low-order byte of the result is even. Carry Flag (CF) - set if there was a carry from or borrow to the most significant bit during last result calculation.…

    • 1660 Words
    • 7 Pages
    Better Essays
  • Powerful Essays

    Index No Statistics

    • 3770 Words
    • 16 Pages

    The aim of this paper is to present a scheme for the description of index numbers in a…

    • 3770 Words
    • 16 Pages
    Powerful Essays
  • Good Essays

    The Windows operating systems use a tree form of data structure rather the linked list. Each node of the tree is known as Virtual Address Descriptors (VAD) having a range of memory addresses. It is the responsibility of the VAD to mark each and every node as reserved for thread’s stack, free or committed.…

    • 670 Words
    • 3 Pages
    Good Essays