SlideShare una empresa de Scribd logo
1 de 4
Descargar para leer sin conexión
A solution manual to
Assembly language
Programming
and the organization of
the IBM PC
Chapter 1
Microcomputer System
BY:- Ytha Yu & Charles Marut
prepared by :
Warda Aziz
Wardaaziz555@gmail.com
Special thanks to my instructor:
MISS SANYA QURESHI
Question 1:
Suppose memory bytes 0-4 have the following contents:
address contents
0 01101010
1 11011101
2 00010001
3 11111111
4 01010101
A) assuming that a word is 2 bytes, what are the contents of
a) The memory word at address 2?
b) The memory word at address 3?
c) The memory word whose high byte is the byte at address 2?
Ans:
a) 00010001 11111111
b) 11111111 01010101
c) 00010001 11011101
B) What is
a) bit 7 of byte 2?
b) Bit 0 of word 3?
c) Bit 4 of byte 2?
d) Bit 11 of word 2?
Ans:
a) 0
b) 1
c) 1
d) 1
Question 2:
A nibble is four bits. Each byte is composed of a high nibble and a low nibble ,
similar to the high and low bytes of a word, using the data in Q1 , give the
contents of
A) the low nibble of byte 1
B) the high nibble of byte 4
Ans:
A)1101
B)0101
Question 3:
The two kinds of memory are ROM and RAM. Which kind of memory
A) holds a user’s program?
B) Holds the program used to start the machine?
C) Can be changed by the user?
D) Retains its contents, even when the power is turned off?
Ans:
A) RAM
B) ROM
C) RAM
D) ROM
Question 4:
What is the function of
A) the microprocessor?
B) The buses
Ans:
Microprocessor:
A microprocessor is a processing unit fabricated on a single circuit chip(CPU). It controls
all functions of the CPU, or other digital devices. The microprocessor functions as an artificial
brain.
Buses:
A bus is a set of wires or connections connecting the major components (CPU, memory and I/O
ports) of a computer system. It is used to transfer the data between different units and controls the
execution of program
Question 5:
The two parts of the microprocessor are the EU and the BIU;
What is the function of
A) EU
B) BIU
Ans:
EU(Execution Unit):
EU(execution unit) is used to execute the instructions as it contains a circuit called ALU.
BIU(Bus Interface Unit):
The BIU facilitates communication between the EU and the memory or I/O circuits. Another
operation of BIU is to speed up the processor.
QUESTION 6:
In the microprocessor , what is the function of
A) IP
B) ALU
Ans:
IP(Instruction Pre-fetch):
The purpose of IP is to speed up the processor as it keeps the address of the next instruction to
be executed.
ALU(Arithmetic and Logic Unit):
The ALU is responsible to perform arithmetic (+, -, *, /) and logic (AND, OR, NOT) operations.
Question 7:
A) What are the I/O ports used for?
B) How are they different from memory locations?
Ans:
A) I/O ports function as a transfer point between CPU and I/O devices.
B) I/O ports are different from memory locations as the address of I/O ports are known as I/O
addresses and can only be used in input and output instructions
Question 8:
What is the maximum length (in bytes ) of an instruction for the 8086 based IBM
PC?
Ans:
The x86 family (8086) is a 16 bit microprocessor that can operate on 16 bits(2 bytes) of data at a
time.
Instruction set(8086)>>x86-16
Question 9:
Consider a machine language instruction that moves a copy of the contents of
register AX in the CPU to a memory word. What happens during
A) fetch cycle
B) Execution cycle
Ans:
;MOV mem, AX
Fetch cycle:
 Fetch the instruction(contents of AX) from the memory
 Decode into machine code
Execution cycle:
 Perform the operation (movement of AX) on the data
 Store the result in memory
Question 10:
Give :
A)three advantages of high level language programming
B)three advantages of assembly language programming
Ans:
High level language:
 Close to natural language
 High level programs can be executed on any machine that has a compiler for that language
 Easier to debug
Assembly language:
 Efficient; produces a faster and shorter machine language program.
 Reading and writing to specific memory locations and I/O ports can be done easily in
assembly language but may be impossible at higher level.
 It can give you a better understanding of the processor(but only at instruction level)

Más contenido relacionado

La actualidad más candente

chapter 7 Logic, shift and rotate instructions
chapter 7 Logic, shift and rotate instructionschapter 7 Logic, shift and rotate instructions
chapter 7 Logic, shift and rotate instructionswarda aziz
 
Solution manual of assembly language programming and organization of the ibm ...
Solution manual of assembly language programming and organization of the ibm ...Solution manual of assembly language programming and organization of the ibm ...
Solution manual of assembly language programming and organization of the ibm ...Tayeen Ahmed
 
assembly language programming organization of IBM PC chapter 9 part-1(MULTIPL...
assembly language programming organization of IBM PC chapter 9 part-1(MULTIPL...assembly language programming organization of IBM PC chapter 9 part-1(MULTIPL...
assembly language programming organization of IBM PC chapter 9 part-1(MULTIPL...Bilal Amjad
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 7 (Logic, Shift,...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 7 (Logic, Shift,...Assembly Language Programming By Ytha Yu, Charles Marut Chap 7 (Logic, Shift,...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 7 (Logic, Shift,...Bilal Amjad
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 5 (The Processor...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 5 (The Processor...Assembly Language Programming By Ytha Yu, Charles Marut Chap 5 (The Processor...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 5 (The Processor...Bilal Amjad
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 8 (The Stack and...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 8 (The Stack and...Assembly Language Programming By Ytha Yu, Charles Marut Chap 8 (The Stack and...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 8 (The Stack and...Bilal Amjad
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 10 ( Arrays and ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 10 ( Arrays and ...Assembly Language Programming By Ytha Yu, Charles Marut Chap 10 ( Arrays and ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 10 ( Arrays and ...Bilal Amjad
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...Bilal Amjad
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 6 (Flow Control ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 6 (Flow Control ...Assembly Language Programming By Ytha Yu, Charles Marut Chap 6 (Flow Control ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 6 (Flow Control ...Bilal Amjad
 
Binary and hex input/output (in 8086 assembuly langyage)
Binary and hex input/output (in 8086 assembuly langyage)Binary and hex input/output (in 8086 assembuly langyage)
Binary and hex input/output (in 8086 assembuly langyage)Bilal Amjad
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...Bilal Amjad
 
Computer Organization and Assembly Language
Computer Organization and Assembly LanguageComputer Organization and Assembly Language
Computer Organization and Assembly Languagefasihuddin90
 
Ascii adjust & decimal adjust
Ascii adjust & decimal adjustAscii adjust & decimal adjust
Ascii adjust & decimal adjustTech_MX
 
Assembly language
Assembly language Assembly language
Assembly language Usama ahmad
 
Stack and its usage in assembly language
Stack and its usage in assembly language Stack and its usage in assembly language
Stack and its usage in assembly language Usman Bin Saad
 
Flow control instructions
Flow control instructionsFlow control instructions
Flow control instructionsProdip Ghosh
 
Jumps in Assembly Language.
Jumps in Assembly Language.Jumps in Assembly Language.
Jumps in Assembly Language.NA000000
 
1D Array in Assembly Language
1D Array in Assembly Language1D Array in Assembly Language
1D Array in Assembly LanguageJaveria Yaqoob
 

La actualidad más candente (20)

chapter 7 Logic, shift and rotate instructions
chapter 7 Logic, shift and rotate instructionschapter 7 Logic, shift and rotate instructions
chapter 7 Logic, shift and rotate instructions
 
Solution manual of assembly language programming and organization of the ibm ...
Solution manual of assembly language programming and organization of the ibm ...Solution manual of assembly language programming and organization of the ibm ...
Solution manual of assembly language programming and organization of the ibm ...
 
assembly language programming organization of IBM PC chapter 9 part-1(MULTIPL...
assembly language programming organization of IBM PC chapter 9 part-1(MULTIPL...assembly language programming organization of IBM PC chapter 9 part-1(MULTIPL...
assembly language programming organization of IBM PC chapter 9 part-1(MULTIPL...
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 7 (Logic, Shift,...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 7 (Logic, Shift,...Assembly Language Programming By Ytha Yu, Charles Marut Chap 7 (Logic, Shift,...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 7 (Logic, Shift,...
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 5 (The Processor...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 5 (The Processor...Assembly Language Programming By Ytha Yu, Charles Marut Chap 5 (The Processor...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 5 (The Processor...
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 8 (The Stack and...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 8 (The Stack and...Assembly Language Programming By Ytha Yu, Charles Marut Chap 8 (The Stack and...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 8 (The Stack and...
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 10 ( Arrays and ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 10 ( Arrays and ...Assembly Language Programming By Ytha Yu, Charles Marut Chap 10 ( Arrays and ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 10 ( Arrays and ...
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 6 (Flow Control ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 6 (Flow Control ...Assembly Language Programming By Ytha Yu, Charles Marut Chap 6 (Flow Control ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 6 (Flow Control ...
 
Binary and hex input/output (in 8086 assembuly langyage)
Binary and hex input/output (in 8086 assembuly langyage)Binary and hex input/output (in 8086 assembuly langyage)
Binary and hex input/output (in 8086 assembuly langyage)
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
 
Computer Organization and Assembly Language
Computer Organization and Assembly LanguageComputer Organization and Assembly Language
Computer Organization and Assembly Language
 
Ascii adjust & decimal adjust
Ascii adjust & decimal adjustAscii adjust & decimal adjust
Ascii adjust & decimal adjust
 
Assembly language
Assembly language Assembly language
Assembly language
 
Assignment on alp
Assignment on alpAssignment on alp
Assignment on alp
 
Stack and its usage in assembly language
Stack and its usage in assembly language Stack and its usage in assembly language
Stack and its usage in assembly language
 
Flow control instructions
Flow control instructionsFlow control instructions
Flow control instructions
 
Assembly 8086
Assembly 8086Assembly 8086
Assembly 8086
 
Jumps in Assembly Language.
Jumps in Assembly Language.Jumps in Assembly Language.
Jumps in Assembly Language.
 
1D Array in Assembly Language
1D Array in Assembly Language1D Array in Assembly Language
1D Array in Assembly Language
 

Similar a Assembly Langauge Chap 1

Similar a Assembly Langauge Chap 1 (20)

Lec45chap4f04
Lec45chap4f04Lec45chap4f04
Lec45chap4f04
 
Computers6 Ch4 1
Computers6 Ch4 1Computers6 Ch4 1
Computers6 Ch4 1
 
5_2018_08_07!07_51_31_AM.pdf
5_2018_08_07!07_51_31_AM.pdf5_2018_08_07!07_51_31_AM.pdf
5_2018_08_07!07_51_31_AM.pdf
 
Software development slides
Software development slidesSoftware development slides
Software development slides
 
Computer Fundamentals Test
Computer Fundamentals TestComputer Fundamentals Test
Computer Fundamentals Test
 
Processors (CPU)
Processors (CPU)Processors (CPU)
Processors (CPU)
 
125252.ppt
125252.ppt125252.ppt
125252.ppt
 
CH01 - Computer Organization & Architecture - 10e_Stallings.pptx
CH01 - Computer Organization & Architecture - 10e_Stallings.pptxCH01 - Computer Organization & Architecture - 10e_Stallings.pptx
CH01 - Computer Organization & Architecture - 10e_Stallings.pptx
 
INTRODUCTION TO COMPUTER SYSTEMS ARCHITECTURE1_17 December 2023.ppt
INTRODUCTION TO COMPUTER SYSTEMS ARCHITECTURE1_17 December 2023.pptINTRODUCTION TO COMPUTER SYSTEMS ARCHITECTURE1_17 December 2023.ppt
INTRODUCTION TO COMPUTER SYSTEMS ARCHITECTURE1_17 December 2023.ppt
 
1 basic computer course
1 basic computer course1 basic computer course
1 basic computer course
 
Basic course
Basic courseBasic course
Basic course
 
Chapter1a
Chapter1aChapter1a
Chapter1a
 
02 the cpu
02 the cpu02 the cpu
02 the cpu
 
Basic course
Basic courseBasic course
Basic course
 
Basic course
Basic courseBasic course
Basic course
 
COA.pptx
COA.pptxCOA.pptx
COA.pptx
 
Bcc201
Bcc201Bcc201
Bcc201
 
Coa presentation1
Coa presentation1Coa presentation1
Coa presentation1
 
Collection of-cs-multiple-choice-questions-mcqs
Collection of-cs-multiple-choice-questions-mcqsCollection of-cs-multiple-choice-questions-mcqs
Collection of-cs-multiple-choice-questions-mcqs
 
11 & 12
11 & 1211 & 12
11 & 12
 

Último

Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.MateoGardella
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterMateoGardella
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 

Último (20)

Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 

Assembly Langauge Chap 1

  • 1. A solution manual to Assembly language Programming and the organization of the IBM PC Chapter 1 Microcomputer System BY:- Ytha Yu & Charles Marut prepared by : Warda Aziz Wardaaziz555@gmail.com Special thanks to my instructor: MISS SANYA QURESHI
  • 2. Question 1: Suppose memory bytes 0-4 have the following contents: address contents 0 01101010 1 11011101 2 00010001 3 11111111 4 01010101 A) assuming that a word is 2 bytes, what are the contents of a) The memory word at address 2? b) The memory word at address 3? c) The memory word whose high byte is the byte at address 2? Ans: a) 00010001 11111111 b) 11111111 01010101 c) 00010001 11011101 B) What is a) bit 7 of byte 2? b) Bit 0 of word 3? c) Bit 4 of byte 2? d) Bit 11 of word 2? Ans: a) 0 b) 1 c) 1 d) 1 Question 2: A nibble is four bits. Each byte is composed of a high nibble and a low nibble , similar to the high and low bytes of a word, using the data in Q1 , give the contents of A) the low nibble of byte 1 B) the high nibble of byte 4 Ans: A)1101 B)0101 Question 3: The two kinds of memory are ROM and RAM. Which kind of memory A) holds a user’s program? B) Holds the program used to start the machine? C) Can be changed by the user? D) Retains its contents, even when the power is turned off? Ans:
  • 3. A) RAM B) ROM C) RAM D) ROM Question 4: What is the function of A) the microprocessor? B) The buses Ans: Microprocessor: A microprocessor is a processing unit fabricated on a single circuit chip(CPU). It controls all functions of the CPU, or other digital devices. The microprocessor functions as an artificial brain. Buses: A bus is a set of wires or connections connecting the major components (CPU, memory and I/O ports) of a computer system. It is used to transfer the data between different units and controls the execution of program Question 5: The two parts of the microprocessor are the EU and the BIU; What is the function of A) EU B) BIU Ans: EU(Execution Unit): EU(execution unit) is used to execute the instructions as it contains a circuit called ALU. BIU(Bus Interface Unit): The BIU facilitates communication between the EU and the memory or I/O circuits. Another operation of BIU is to speed up the processor. QUESTION 6: In the microprocessor , what is the function of A) IP B) ALU Ans: IP(Instruction Pre-fetch): The purpose of IP is to speed up the processor as it keeps the address of the next instruction to be executed. ALU(Arithmetic and Logic Unit): The ALU is responsible to perform arithmetic (+, -, *, /) and logic (AND, OR, NOT) operations. Question 7: A) What are the I/O ports used for? B) How are they different from memory locations? Ans: A) I/O ports function as a transfer point between CPU and I/O devices.
  • 4. B) I/O ports are different from memory locations as the address of I/O ports are known as I/O addresses and can only be used in input and output instructions Question 8: What is the maximum length (in bytes ) of an instruction for the 8086 based IBM PC? Ans: The x86 family (8086) is a 16 bit microprocessor that can operate on 16 bits(2 bytes) of data at a time. Instruction set(8086)>>x86-16 Question 9: Consider a machine language instruction that moves a copy of the contents of register AX in the CPU to a memory word. What happens during A) fetch cycle B) Execution cycle Ans: ;MOV mem, AX Fetch cycle:  Fetch the instruction(contents of AX) from the memory  Decode into machine code Execution cycle:  Perform the operation (movement of AX) on the data  Store the result in memory Question 10: Give : A)three advantages of high level language programming B)three advantages of assembly language programming Ans: High level language:  Close to natural language  High level programs can be executed on any machine that has a compiler for that language  Easier to debug Assembly language:  Efficient; produces a faster and shorter machine language program.  Reading and writing to specific memory locations and I/O ports can be done easily in assembly language but may be impossible at higher level.  It can give you a better understanding of the processor(but only at instruction level)