Question: 1 . a ) 1 0 numbers are stored from location 1 0 0 0 onwards. Write an assembly language program to count the number
a numbers are stored from location onwards. Write an assembly language program to count the number of odd numbers in these. Draw the flowchart also.
From Code Segment
MOV BXH
MOV CX
XOR AH AH
AGAIN: MOV ALBX
ROR AL
JNC NEXT
INC AH
NEXT: LOOP AGAIN
b Suppose mathrmAXmathrmACH What will be the value in AX in each of the following cases if the carry flag is set? iROL mathrmAXii RCL mathrmAX
What will be the values of the specified registers and flags after the execution of the following instructions?
MOV CXH
MOV AXAH
RCL ALCL ; CF
ADD AXCX
AX CX CF
PF AF SF ZF
MOV AXFAH
MUL AL
SUB AHAL
s ADC AXAX
AX CF PF
AX CF PF
and B are ASCII number
Given the definition of the following data segment, where A and B are ASCII numbers.
DATA
A DB
B DB
ORG H
C DB
Write the required code segment that converts these ASCII numbers to packed BCD and add them up to calculate sum in pack BCD form. Save the result in variable C The resulting BCD number is assumed to be a byte.
Write an assembly language program that will process the following sentence as follows :
a Convert the first letter of each word to uppercase,
b Count and save the number of words in the sentence,
c Count and save the number of alpha characters letters in the sentence
Consider the following sentence in your program : "king khalid university was established in H
The program should be general and work for any sentence ending with a full stop character.
Uppercase characters are ordered between A H and Z A H and lowercase characters are ordered between a H and z A H in the in the ASCII Code table. For lowercase letters, bit d of the ASCII code is where for uppercase letters it is
For example,
Write a program that finds the number of s in a bits data.
Write a program that finds the number of s in a bits data.
How many IO modes are available in A programmable peripheral interface? List and explain them in short.
For the circuit diagram shown in Figure :
a What are the addresses of port A port B port C and control register PCW
b Which control word is required to interface seven segments display to port A and switches to port B and port C in mode
c Write an ALP program to read the switches and display their sum on the seven segment display continuously.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
