Preview

Chapter 5 Addressing Modes

Powerful Essays
Open Document
Open Document
1518 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Chapter 5 Addressing Modes
Chapter 5: Addressing Modes
5.1: Immediate and Register addressing modes
1.
Can the programmer of a microcontroller make up new addressing modes? // unless you’re David Barahona you can’t :p
2.
Show the instruction to load 1000 0000 (binary) into R3
MOV R3, 80H or MOV R3, 1000_0000b
3.
Why is the following invalid?
“MOV R2, DPTR”
DPTR is a 16­bit register and CANNOT be loaded into a 8­bit register like R2.
Unless you break down DPTR into (Data Pointer High) and (Data Pointer Low) which are 8­bit register, you can’t do the above instruction.
4.
True or false. DPTR is a 16­bit register that is also accessiblte in low­byte and high byte formats?
Yes! Read #3 lol.
5.
Is the PC (program counter) also avalaible in high and low byte formats?
No, the PC is the only 16­bit register that cannot be accessed in 8­bit formats like the DPTR. 5.2: Accessing Memory using various addressing modes
1.
The instruction “MOV A, 40H” uses ________ addressing mode. Why?
It uses direct addressing mode since it is loading the 8­bit contents at memory location 40H and loading it into the accumulator register.
2.
What address is assigned to register R2 of bank 0?
02H
3.
What address is assigned to register R2 of bank 2?
12H
4.
What address is assigned to register A?
E0h
5.
Which registers are allowed to be used for register indirect addressing mode if the data is in on­chip RAM?
In this mode the registers are used as a pointer to the data. R0 and R1 are the only registers used in this addressing mode as pointers (@R0 or @R1). 5.3: Bit Addressing for I/O and RAM
1.
True or false. All I/O ports of the 8051 are bit­addressable
2. True or false . All registers of the 8051 are bit­addressable
3.
True or false . All RAM locations of the 8051 are bit­addressable.
4.
Indicate which of the following registers are bit addressable.
a. A b. B c. R4 d. PSW
e. R7
5. Of the 128 bytes

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
  • Good Essays

    Nt1210 Chapter 1 Review

    • 1315 Words
    • 6 Pages

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

    • 1315 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    1. Research the following organizations and explain their involvement with the Internet public IP addresses…

    • 334 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    6. Ipv4 is still being used because the address pool supports the continual demands and extends its usefulness. Also because Ipv4 and Ipv6 are not compatible.…

    • 278 Words
    • 2 Pages
    Satisfactory 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
  • Good Essays

    the following is true about the process of read data, as described in the chapter?…

    • 856 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Together with AK/ADMS 4562 3.0, introduces students to the principles and practice of Canadian taxation and related tax planning, to provide a basic understanding of the Canadian Income Tax Act and its GST implications in relation to individuals.…

    • 4726 Words
    • 19 Pages
    Good Essays
  • Good Essays

    Comp 220

    • 1463 Words
    • 6 Pages

    The Resistor class created in the Week 2 lab will be used as the class that the pointer operations will be used upon. The lab also requires the use of accessor functions and static data members, which may need to be added to the Resistor class definition and implementation.…

    • 1463 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    It 240 Appendix F

    • 260 Words
    • 2 Pages

    This mode is available for Windows users with limited access. These users do not have access to hardware and can only access their own address space in the Windows environment. Since the User mode operates in Ring 3 of the Intel 386 microprocessor protection model, they should not have access, or alter, programs running in Ring 0 (Kernel mode) on the computer. (Regan, 2006)…

    • 260 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    2. Understand how to meet communication and language needs, wishes and preferences of an individual…

    • 409 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Sheet01

    • 1045 Words
    • 5 Pages

    4. What is the result of the following code and where is it kept? LDAA #$15 ADDA #$13 5. Which of the following instructions is (are) illegal? a- LDAA #500 b- LDAA #50 c- LDAA #00 d- LDAA #$255 e- LDAA #$25 f- LDAA #$F5 g- ADDA mybyte , #$25 6. Which of the following instructions is (are) illegal? a- ADDA #$300 b- ADDA #$50 c- ADDA #$500 d- ADDA #$255 e- ADDA #12 f- ADDA#$F5 g- ADDA #$25 7. 8. 9. 10. Show a simple code to load values 30H and 97H into locations 805H and 806H, respectively. Show a simple code to load value 55H into locations 300H and 308H. Show a simple code to load value 5FH into Port B. Which of the following is an invalid use of the immediate addressing mode? a- LDDA #$24 b- LDAA $30 c- LDAA #$60…

    • 1045 Words
    • 5 Pages
    Satisfactory Essays
  • Better Essays

    The Declaration and Address’ intended audience was all who love our Lord Jesus Christ. The intended audience ties in with the message of most of the document in that it speaks of unity. A major part of the Stone-Campbell Movement was to bring unity and the Stone-Campbell Movement was formed through unity. I think a couple of the main reasons why unity is so important in the document was one, because God calls us to unity through Him, and two, because the Stone-Campbell Movement was created through unity. If Stone and Campbell stayed separate in their thoughts, beliefs, and motives the impact they were able to have would not have happened. The importance of unity is far beyond describing. When there is not unity in the Church, then the Church will fall. Division makes anything weak. That is why the topic of unity is discussed with such importance.…

    • 861 Words
    • 4 Pages
    Better Essays
  • Satisfactory Essays

    Homework

    • 343 Words
    • 2 Pages

    68. In the HCS12, the stack pointer (SP) points to _____________ (the last used, next available) location of the stack.…

    • 343 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    For the hexadecimal main memory address 111111, 666666, BBBBBB, show the following information, in hexadecimal format:…

    • 1443 Words
    • 6 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

Related Topics