Microprocessor - Please solve it with deatials !!

code:
.model small
.data
b db "enter the character$"
a db "enter the number$"
.code
start:
mov ax,@data
mov ds,ax
mov dx,offset
b
;print 1st string
mov ah,09h
int 21h
mov
ah,01h
;scan for the character
int 21h
mov bl,al
mov dl,10
mov
ah,02h
; print new line
int 21h
mov dl,0dh
mov ah,02h
int 21h
mov dx,offset a
mov ah,09h
int
21h
;print 2nd string
mov
ah,01h
;scan the number
int 21h
sub
al,30h
;mov counter in cl
mov cl,al
mov dl,10
mov ah,02h
int
21h
;new line
mov
dl,0dh
mov ah,02h
int 21h
l:
mov dl,bl
mov ah,02h
int
21h
; print the character count no of times
loop l
end start
output:



Microprocessor - Please solve it with deatials !! 19. Write an assembly program that will: a....
Using emu8086.inc , write an assembly program that display the message 'Enter the number:' Then, reads a byte from the user, then count the number of 1’s in it, and display them on screen.
Your assignment is to write an assembly language program which read a string and print it in uppercase. This program asks the user to enter a string which is subsequently displayed in uppercase. It is important to first ensure that string to be converted is in the a-z range. The program does not recognize any space, symbols or any kind of punctuation marks. Any time the user enters any of this character the program is going to repeatedly ask for the...
microprocessor
system assembly coding problem, please write in clear
steps
2. Write an assembly program that counts the number of bits that are set to a '1' in RO, and writes the total to R1 When finished, enter an infinite loop.
2. Write an assembly program that counts the number of bits that are set to a '1' in RO, and writes the total to R1 When finished, enter an infinite loop.
Write an assembly code to do the following noting that the used
microprocessor is MC68k:
The 7-Segment Display:
Use a 7-segment display and a set of current lining resistors (330 to 470 Ohm) in a common anode configuration with the output port of the VIA to display the value of the switch (For example, if the switch is set to [ON OFF OFF ON] then display9) The show goes like this: on power up, you have to show a count...
2. Searching a String: Write a
MIPS assembly language program to do the following: Read a string
and store it in memory. Limit the string length to 100 characters.
Then, ask the user to enter a character. Search and count the
number of occurrences of the character in the string. The search is
not case sensitive. Lowercase and uppercase letters should be
equal. Then ask the user to enter a string of two characters.
Search and count the number of...
Your assignment is to write an assembly language program which read a string and print it in uppercase. This program asks the user to enter a string which is subsequently displayed in uppercase. It is important to first ensure that string to be converted is in the a-z range. The program does not recognize any space, symbols or any kind of punctuation marks. Any time the user enters any of this character the program is going to repeatedly ask for...
Write a Java program called Flying.java that, firstly, prompts (asks) the user to enter an input file name. This is the name of a text file that can contain any number of records. A record in this file is a single line of text in the following format: Num of passengers^range^name^manufacturer^model where: Num of passengers is the total number of people in the plane. This represents an integer number, but remember that it is still part of the String so...
3. Write a program in assembly language that reads a number from the keyboard and displays it on the screen. 4. Write a program in assembly language to ask two digits from the user, store the digits in the EAX and EBX register, respectively, add the values, store the result in a memory location 'res' and finally display the result.
MIPS Assembly Language * Write a simple program to count the number of non overlapping repetitions of a character pattern in a character string. For example " the pattern "aa" appears twice in the in the string "aabbaaa". Provide a user interface to read the character pattern and the string.
Write a program which asks the user to enter an integer. Use switch statement to write out the numeric word (such as ONE) if the user's input is 1; (see the sample run output for the usr input 2 or 3); otherwise, write OUT OF RANGE. Below are few sample runs: If the user enters a 1, the program will print: ONE TWO THREE Or, if the user enters a 2, the program will print: TWO THREE Or, if the...