Question: Micro Processors Class-I need help! number ending with ODD (XXXXXXX 1/3/5/7/9) Number is : 21701417 Write an assembly code to: c read a digit from
Micro Processors Class-I need help!

number ending with ODD (XXXXXXX 1/3/5/7/9) Number is : 21701417 Write an assembly code to: c read a digit from the keyboard (assume a digit 0-9 is entered), and prints all digits from the entered digit to 0. Stepl. when 4 is pressed Step2. 43210 should be printed Sample output (if 4 is entered): 43210 Sample output (if 7 is entered): 76543210 MAIN: .DATA .CODE MOV AX, @DATA MOV DS, AX MOV AH, 4Ch INT 21h END Note: AH=01h, INT 21h inputs a character from the keyboard. Input character will be in AL (ASCII). AH=02h, INT 21h outputs a character to the monitor. Assumes the character is in DL (ASCII)
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
