you as a expert programmer: Write an Assembly Program (lab2D.asm) that allows reading…
- User
you as a expert programmer: Write an Assembly Program (lab2D.asm) that allows reading two inputs from the user, each input will represent a digit from ‘0’ to ‘9’ (entered in ASCII), you program is supposed to add the two inputs and store the final result in memory location 0x4000. Make your program loads at 0x3000. Your program should produce also an output on the console display the letter Y if the result is >= 0x000A and the output should be N otherwise Example 1: If the user enters input 1 as ‘4’ and input 2 as ‘9’ Then you program should store in the 0x4000 location the value 4+9 which is 13 which is 0x000D in Hex Also it will output ‘Y’ on the console. Example 2: If the user enters input 1 as ‘3’ and input 2 as ‘4’ Then you program should store in the 0x4000 location the value 3+4 which is 7 which is 0x0007 in Hex Also it will output ‘N’ on the console.
- Assistant