Question: Modify the following code for user to choose how many times the program will loop and display Hello World #. Print from in the loop
Modify the following code for user to choose how many times the program will loop and display "Hello World #". Print from in the loop a string and count. Please type out, thank you.
Page 58,132 Title MASMLab For MASM Hello.asnm MASM Hello cseg segment code assume cs:cseg, ds:cseg, ss:cseg, es:cseg org 100h start: mov cx,10 mov ah,9 again: mov ax, of set Hello int 21h mov dx, offset Num msg int 21h inc byte ptr Num msq Loopne again done: mov ah, 4ch int 21h org 200h Hello db "Hello World", 20h, 20h, "$" Num msg db 30h,13,10, 36 csea ends end start Page 58,132 Title MASMLab For MASM Hello.asnm MASM Hello cseg segment code assume cs:cseg, ds:cseg, ss:cseg, es:cseg org 100h start: mov cx,10 mov ah,9 again: mov ax, of set Hello int 21h mov dx, offset Num msg int 21h inc byte ptr Num msq Loopne again done: mov ah, 4ch int 21h org 200h Hello db "Hello World", 20h, 20h, "$" Num msg db 30h,13,10, 36 csea ends end start
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
