please can anyone help me with this homework i do not know what to do. thank you
1.
Write a program that will count from any user-inputted number to 0. For example, if the user inputs 5, the program should output: 5, 4, 3, 2, 1, 0.
825
0
Newbie Poster
Recommended Answers
Jump to PostDo you actually need the comma character also?
If not, check this out:
It is fixed to take only a single digit number.; CntDown mov SI, 005Dh ; location of command-line parameter mov cx, [SI] ; put value in CX cmp cl, 20h ; Is the …
Jump to PostYou could turn the multi-digit value into unpacked BCDS...
jmp start buf times 2 db 0 start: mov dx, buf mov cx, 2 mov bx, 0 mov ah, 3fh ; Read Dev/File Handle int 21h sub byte [buf], 0x30 sub byte [buf+1], 0x30
'21'=3231-3030=0201
All 6 Replies
thines01
401
Postaholic
Team Colleague
Featured Poster
Goalatio
0
Junior Poster in Training
NotNull
23
Posting Whiz in Training
gilianz
0
Newbie Poster
Goalatio
0
Junior Poster in Training
b1083
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.