Write a program that will allow the user to specify how many times the program will loop and display the title of the program include your name in the title, print from in the loop a string and count.
-Assembly Language MASM 8086
COPY TO CODE:
.model small
.stack 100h
.data
;prompt for input
prompt db 'Enter the number of line : $'
;it wil print message
lineToPrint db 'hello my name is shahrukh : $'
.code
main proc
;to print counter
Mov bl,'0'
mov ax,@data ;move data address to ax
mov ds,ax ;move ax to data segment
lea dx , prompt ;if use lea no need to use offset
mov ah,9 ;ask to print array of string
int 21h
mov ah,1 ;input function
int 21h
;convert ascii value to integer input
sub al,30h
mov ch,0
mov cl,al ;save the value from input
srk:
mov dx,10 ;print \n
mov ah,2
int 21h
mov dx,13 ;cursor at first position
mov ah,2
int 21h
lea dx , lineToPrint ;if use lea no need to use offset
mov ah,9 ;ask to print array of string
int 21h
add bl,1
mov dl,bl
mov ah,2
int 21h
loop srk
mov ah,4ch
int 21h
main endp
end main
OUTPUT:

Write a program that will allow the user to specify how many times the program will...
I need the following done in MASM (Assmebly or ASM) This program must use Irvine Library and the outline for the code is below (Kip irvine) Write an assembly language program to input a string from the user. Your program should do these two things: 1. count and display the number of words in the user input string. 2. Flip the case of each character from upper to lower or lower to upper. For example if the user types in: ...
Programming: Write a SPIM assembly language program num-vowel.s based on the hardware implementation method in the lab notes and the above practice. The program will do the following: Prompt the user to enter a string. The program will call the procedure vowelp to check if a character entered in the string is a vowel or not. Count how many vowels and how many non-vowels are in the string. Print out the calculated results with appropriate message. Hint: A loop is...
Write a MARIE program to allow the user to input eight integers (positive, negative, or zero) and then find the smallest and the largest and print each of these out. Please I need this program in MIPS language. ASSEMBLY language. Thank you
Java Letter Counter: Write a program that asks the user to enter a string, and then asks the user to enter a character. The program should count and display the number of times that the specified character appears in the string. Must use a do while loop and a counter!!!!
Write a small program that asks the user how many asterisks it should print out. The user responds with a number, then the program prints that number of asterisks. The number of asterisks to print should be stored in a variable. Finally the program asks the user if it should start over, and repeats as many times as the user wants. The prompt to run the program again should look like the one below, and should wait at the end...
Write a x64 MASM program using ReadConsoleA and WriteConsoleA to prompt the user for their name. The program should then display the user's name surrounded by asterisks. Allow the name to be up to 30 characters long. Example (user input is boldface, and there are 28 asterisks on the top and bottom lines): What is your name? Kristin Jacobs **************************** *Kristin Jacobs * **************************** Copy / Paste a sample run from the console screen into your .asm file following your...
Write a C program that prompts the user for the number for times the user wants to flip a coin. Your program will flip a virtual coin that number of times and return the following: 1) The number of times heads occurred. 2) The number of times tails occured. Then take the coin flip program and modify the random number generator to roll a single 6-sided dice. DO NOT DISPLAY THE RESULTS OF EACH ROLL. 1) Ask the user how...
Write a program that asks the user to enter a string and then asks the user to enter a character. The program should count and display the number of times that the specified character appears in the string. python programming
ssembly Language Programming with x86, IRVINe MASM 1. Write a program to add 7 12 times and print out the result ------------------------------------------------------------------------------- Write a program to print and add 10 20 30 40 50 ; you can use a loop The output should be “The sum of 10 20 30 40 50 ”
LANGUAGE = C i. Write a program that takes int numbers from user until user gives a sentinel value (loop terminating condition). Sort the numbers in ascending order using Insertion sort method. Sorting part should be done in different function named insertionSort(). Your code should count the number of swaps required to sort the numbers. Print the sorted list and total number of swaps that was required to sort those numbers. (4 marks) ii. In this part take another number...