Get premium membership and access revision papers, questions with answers as well as video lessons.
Got a question or eager to learn? Discover limitless learning on WhatsApp now - Start Now!

Ccs 204:Assembly Language Programming Question Paper

Ccs 204:Assembly Language Programming 

Course:Bachelor Of Science In Computer Science

Institution: Maseno University question papers

Exam Year:2016



SECTION A(6X5=30 MARKS)
Q1.
a)Highlight five merits of assembly language programming over high level programming languages
b)Define the following terms
i)Assembler
ii)Loader
iii)Op-code
iv)Linker
c)What is an assembler directive?State any two assembler directives and explain their use in 8051 microcontroller assembly language programming.
d)What are the three main types of computer programming languages?Give an example in each case
e)Outline the structure of a typical assembly language instruction and explain the function of each field
f)Explain the functions of the following special function register in a computer system
i)Program counter register
ii)Processor status word register
iii)Stack pointer
iv)Data pointer
v)Accumulator register

SECTION B(2X20=40 MARKS)
Q2.
a)Draw a well labelled diagram of the architecture of 8051 microcontroller and explain the function of each unit
b)Write an assembly language program to add two binary numbers 1010b and 1100b.Find the 2's complement of the result,compare the final result with 0011b and if not eequal display the result on port 0 of 8051

Q3.
a)Define the following addressing modes of 8051 and explain each addressing with suitable examples:
i.Register addressing mode
ii.Direct addressing mode
iii.Immediate addressing mode
iv.Indexed addressing mode
v.Absolute addressing mode
b)Write an assembly language program to logically AND 1111b and 0101b and transfer the result to external memory location 50h with a delay of ten machine cycles in between the instructions

Q4.
a)Explain the assembling process in detail and state the importance of each stage
b)What is assembly language programming ?Write an asseemblt language program to continuously monitor the status of a switch connected to port pin p2.3 of 8051 microcontroller and send a square wave pulsed to p1.0 whenever the switch is closed.

Q5.
a)Status and explain five major differences between microprocessors and microcontrollers.
b)With suitable examples, explain the five types of instructions available in assembly language programming






More Question Papers


Popular Exams



Return to Question Papers