SlideShare a Scribd company logo
1 of 13
In 8051 There are six types of addressing modes.
 Register AddressingMode
 Direct AddressingMode
 Register IndirectAddressing Mode
 Immediate AddressingMode
 Implied/Register Specfic AddressingMode
 Indexed AddressingMode
 The register addressing instruction involves
information transfer between registers
 The 8051 can access eight ‘’working registers’’(R0-
R7).
 Three bit code within the instruction selects one of
the eight registers from the selected register bank.
 The programmer can select a register bank by
modifying bits 4 and 3 in the PSW.
 Example: add the content of register r3 and r4 from
bank 2.
 step 1: MOV PSW
 step 2:MOV A, R3
MOV A, R4
 Can access any on chip variable and hardware
register.(RAM and SF register).
 This mode allows you to specify the operand by
giving its actual memory address.
 the MSB of the address decides whether it is a
location within in the chip RAM(MSB=0) or in
SFR.(MSB=1).
 Example: MOV A,50H
ADD A, 51H
 addressing mode R0 and R1 of each register bank
can be used as an index or pointer register.
 R0 and R1 point to the contents in the RAM.
 the instruction with indirect addressing uses the@
sign.
 Example: MOV A , @R0
ADD A ,@R1
 In this Immediate Addressing Mode, the data is
provided in the instruction itself.
 The data is provided immediately after the opcode.
 The sign # indicates it is a immediate addressing
mode.
 Example: MOV A ,#52
 Inherent in the instruction, these refers to a specific
register such as accumulator or DPTR.
 In the implied addressing mode, there will be a
single operand.
 These types of instruction can work on specific
registers only.
 Example: RLA , SWAPA
 These are 1- byte instruction. The first one is used
to rotate the A register content to the Left. The
second one is used to swap the nibbles in A.
 Only program memory can be accessed in the
index addressing.
 Either DPTR or PC can be used as an index.
 Example: MOVCA, @A+PC;
MOVCA, @A+DPTR;
The C in MOVC instruction refers to code byte. For
the first instruction, let us consider A holds 30H. And
the PC value is1125H. The contents of program
memory location 1155H (30H + 1125H) are moved to
register A.
 Comparison b/w MC and MP
 Features of 8051
 Architecture
 Pin configuration
 Memory organization(external data and program)
 Addressing modes
 8051 microcontrollers are manufactured by which of the following
companies?
a) Atmel
b) Philips
c) Intel
d) All of the mentioned
 Unlike microprocessors, microcontrollers make use of batteries
because they have:
a) high power dissipation
b) low power consumption
c) low voltage consumption
d) low current consumption
 The internal RAM memory of the 8051 is:
A. 32 bytes
B. 64 bytes
C. 128 bytes
D. 256 bytes
 The 8051 has ________ 16-bit counter/timers.
A. 1 B. 2 C. 3 D. 4
 Microcontrollers often have:
A. CPUs
B. RAM
C. ROM
D. all of the above
Microcontroller .pptx

More Related Content

Similar to Microcontroller .pptx

Addressing Modes
Addressing ModesAddressing Modes
Addressing ModesMayank Garg
 
Instruction set summary
Instruction set summary Instruction set summary
Instruction set summary janicetiong
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051SARITHA REDDY
 
Unit iv introduction to 8051 microcontroller ppts
Unit iv introduction to 8051 microcontroller pptsUnit iv introduction to 8051 microcontroller ppts
Unit iv introduction to 8051 microcontroller pptsSreenivas Hanumandla
 
Lecture 4 (8051 instruction set) rv01
Lecture 4 (8051 instruction set) rv01Lecture 4 (8051 instruction set) rv01
Lecture 4 (8051 instruction set) rv01cairo university
 
Microprocessor 8086
Microprocessor 8086Microprocessor 8086
Microprocessor 8086Waleed Khan
 
8051 Programming (1).pptx
8051 Programming (1).pptx8051 Programming (1).pptx
8051 Programming (1).pptxDhyeayaParmar
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085ShivamSood22
 
8051 Addressing Modes
8051 Addressing Modes8051 Addressing Modes
8051 Addressing ModesSenthil Kumar
 
microcontroller_instruction_set for ENGINEERING STUDENTS
microcontroller_instruction_set for  ENGINEERING STUDENTSmicrocontroller_instruction_set for  ENGINEERING STUDENTS
microcontroller_instruction_set for ENGINEERING STUDENTSssuser2b759d
 
Https _doc-0o-c4-apps-viewer.googleusercontent
Https  _doc-0o-c4-apps-viewer.googleusercontent Https  _doc-0o-c4-apps-viewer.googleusercontent
Https _doc-0o-c4-apps-viewer.googleusercontent vijaydeepakg
 
Lecture 02 Data Group of Instructions
Lecture 02 Data Group of InstructionsLecture 02 Data Group of Instructions
Lecture 02 Data Group of InstructionsZeeshan Ahmed
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontrollerchirag patil
 
Unit -2 and 3 mekirirygiygyuguiguihiiqio
Unit -2 and 3 mekirirygiygyuguiguihiiqioUnit -2 and 3 mekirirygiygyuguiguihiiqio
Unit -2 and 3 mekirirygiygyuguiguihiiqioManikanta Reddy Sakam
 
Memory intrface and addrs modes
Memory intrface and addrs modesMemory intrface and addrs modes
Memory intrface and addrs modesbalbirvirdi
 
Module 2 instruction set
Module 2 instruction set Module 2 instruction set
Module 2 instruction set Deepak John
 
advancsed microprocessor and interfacing
advancsed microprocessor and interfacingadvancsed microprocessor and interfacing
advancsed microprocessor and interfacing@zenafaris91
 

Similar to Microcontroller .pptx (20)

Addressing Modes
Addressing ModesAddressing Modes
Addressing Modes
 
Instruction set summary
Instruction set summary Instruction set summary
Instruction set summary
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051
 
Qb microprocessors
Qb microprocessorsQb microprocessors
Qb microprocessors
 
Pdemodule 4
Pdemodule 4Pdemodule 4
Pdemodule 4
 
Unit iv introduction to 8051 microcontroller ppts
Unit iv introduction to 8051 microcontroller pptsUnit iv introduction to 8051 microcontroller ppts
Unit iv introduction to 8051 microcontroller ppts
 
Lecture 4 (8051 instruction set) rv01
Lecture 4 (8051 instruction set) rv01Lecture 4 (8051 instruction set) rv01
Lecture 4 (8051 instruction set) rv01
 
Microprocessor 8086
Microprocessor 8086Microprocessor 8086
Microprocessor 8086
 
8051 Programming (1).pptx
8051 Programming (1).pptx8051 Programming (1).pptx
8051 Programming (1).pptx
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085
 
8051 Addressing Modes
8051 Addressing Modes8051 Addressing Modes
8051 Addressing Modes
 
microcontroller_instruction_set for ENGINEERING STUDENTS
microcontroller_instruction_set for  ENGINEERING STUDENTSmicrocontroller_instruction_set for  ENGINEERING STUDENTS
microcontroller_instruction_set for ENGINEERING STUDENTS
 
Https _doc-0o-c4-apps-viewer.googleusercontent
Https  _doc-0o-c4-apps-viewer.googleusercontent Https  _doc-0o-c4-apps-viewer.googleusercontent
Https _doc-0o-c4-apps-viewer.googleusercontent
 
Lecture 02 Data Group of Instructions
Lecture 02 Data Group of InstructionsLecture 02 Data Group of Instructions
Lecture 02 Data Group of Instructions
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontroller
 
Unit -2 and 3 mekirirygiygyuguiguihiiqio
Unit -2 and 3 mekirirygiygyuguiguihiiqioUnit -2 and 3 mekirirygiygyuguiguihiiqio
Unit -2 and 3 mekirirygiygyuguiguihiiqio
 
Memory intrface and addrs modes
Memory intrface and addrs modesMemory intrface and addrs modes
Memory intrface and addrs modes
 
8051d
8051d8051d
8051d
 
Module 2 instruction set
Module 2 instruction set Module 2 instruction set
Module 2 instruction set
 
advancsed microprocessor and interfacing
advancsed microprocessor and interfacingadvancsed microprocessor and interfacing
advancsed microprocessor and interfacing
 

More from KiruthikaRajasekaran (20)

zeeman effect.pptx
zeeman effect.pptxzeeman effect.pptx
zeeman effect.pptx
 
x-ray spectra.pptx
x-ray spectra.pptxx-ray spectra.pptx
x-ray spectra.pptx
 
X-RAY -DIFRACTION TYPES.ppt
X-RAY -DIFRACTION TYPES.pptX-RAY -DIFRACTION TYPES.ppt
X-RAY -DIFRACTION TYPES.ppt
 
types of wiring.pptx
types of wiring.pptxtypes of wiring.pptx
types of wiring.pptx
 
shell model and ionization chamber.pptx
shell model and ionization chamber.pptxshell model and ionization chamber.pptx
shell model and ionization chamber.pptx
 
NDT.pptx
NDT.pptxNDT.pptx
NDT.pptx
 
multimeter.pptx
multimeter.pptxmultimeter.pptx
multimeter.pptx
 
metallic glass.pptx
metallic glass.pptxmetallic glass.pptx
metallic glass.pptx
 
megger testing.pptx
megger testing.pptxmegger testing.pptx
megger testing.pptx
 
Materials Science -nano ppt 1.pptx
Materials Science -nano ppt 1.pptxMaterials Science -nano ppt 1.pptx
Materials Science -nano ppt 1.pptx
 
liquid drop model and counter.pptx
liquid drop model and counter.pptxliquid drop model and counter.pptx
liquid drop model and counter.pptx
 
fullerene seminar_2 (1).pptx
fullerene seminar_2 (1).pptxfullerene seminar_2 (1).pptx
fullerene seminar_2 (1).pptx
 
electrical measuring instruments.pptx
electrical measuring instruments.pptxelectrical measuring instruments.pptx
electrical measuring instruments.pptx
 
Earthing.ppt
Earthing.pptEarthing.ppt
Earthing.ppt
 
applications of nanotubes.pptx
applications of nanotubes.pptxapplications of nanotubes.pptx
applications of nanotubes.pptx
 
Machine Cycle 1.pptx
Machine Cycle 1.pptxMachine Cycle 1.pptx
Machine Cycle 1.pptx
 
TENSOR .pptx
TENSOR .pptxTENSOR .pptx
TENSOR .pptx
 
Bonds in solids.pptx
Bonds in solids.pptxBonds in solids.pptx
Bonds in solids.pptx
 
ALGEBRA OF TENSOR .pptx
ALGEBRA OF TENSOR .pptxALGEBRA OF TENSOR .pptx
ALGEBRA OF TENSOR .pptx
 
SAW.pptx
SAW.pptxSAW.pptx
SAW.pptx
 

Recently uploaded

GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 

Recently uploaded (20)

🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 

Microcontroller .pptx

  • 1.
  • 2. In 8051 There are six types of addressing modes.  Register AddressingMode  Direct AddressingMode  Register IndirectAddressing Mode  Immediate AddressingMode  Implied/Register Specfic AddressingMode  Indexed AddressingMode
  • 3.  The register addressing instruction involves information transfer between registers  The 8051 can access eight ‘’working registers’’(R0- R7).  Three bit code within the instruction selects one of the eight registers from the selected register bank.  The programmer can select a register bank by modifying bits 4 and 3 in the PSW.
  • 4.  Example: add the content of register r3 and r4 from bank 2.  step 1: MOV PSW  step 2:MOV A, R3 MOV A, R4
  • 5.  Can access any on chip variable and hardware register.(RAM and SF register).  This mode allows you to specify the operand by giving its actual memory address.  the MSB of the address decides whether it is a location within in the chip RAM(MSB=0) or in SFR.(MSB=1).  Example: MOV A,50H ADD A, 51H
  • 6.  addressing mode R0 and R1 of each register bank can be used as an index or pointer register.  R0 and R1 point to the contents in the RAM.  the instruction with indirect addressing uses the@ sign.  Example: MOV A , @R0 ADD A ,@R1
  • 7.  In this Immediate Addressing Mode, the data is provided in the instruction itself.  The data is provided immediately after the opcode.  The sign # indicates it is a immediate addressing mode.  Example: MOV A ,#52
  • 8.  Inherent in the instruction, these refers to a specific register such as accumulator or DPTR.  In the implied addressing mode, there will be a single operand.  These types of instruction can work on specific registers only.  Example: RLA , SWAPA  These are 1- byte instruction. The first one is used to rotate the A register content to the Left. The second one is used to swap the nibbles in A.
  • 9.  Only program memory can be accessed in the index addressing.  Either DPTR or PC can be used as an index.  Example: MOVCA, @A+PC; MOVCA, @A+DPTR; The C in MOVC instruction refers to code byte. For the first instruction, let us consider A holds 30H. And the PC value is1125H. The contents of program memory location 1155H (30H + 1125H) are moved to register A.
  • 10.  Comparison b/w MC and MP  Features of 8051  Architecture  Pin configuration  Memory organization(external data and program)  Addressing modes
  • 11.  8051 microcontrollers are manufactured by which of the following companies? a) Atmel b) Philips c) Intel d) All of the mentioned  Unlike microprocessors, microcontrollers make use of batteries because they have: a) high power dissipation b) low power consumption c) low voltage consumption d) low current consumption  The internal RAM memory of the 8051 is: A. 32 bytes B. 64 bytes C. 128 bytes D. 256 bytes
  • 12.  The 8051 has ________ 16-bit counter/timers. A. 1 B. 2 C. 3 D. 4  Microcontrollers often have: A. CPUs B. RAM C. ROM D. all of the above