Question: The following assembly programs should have no errors. Make sure to add a comments with your name and ID at the first line. Also, put

 The following assembly programs should have no errors. Make sure to

The following assembly programs should have no errors. Make sure to add a comments with your name and ID at the first line. Also, put comments on every line. Moreover, the program should be well aligned with spaces to be readable. Write an Assembly program to use the LCD and keypad. Suppose the following subroutines are already written: InitLCD: initialize the LCD SendCmd: send 8-bit command stored in the accumulator to the LCD SendData: send 8-bit ASCII code stored in the accumulator to the LCD ReadKey: wait for a key to be pressed on the keypad and return its ASCII code in the accumulator Delay: wait 5 seconds Your task is to write the main program that will print on the first line of the LCD the message: "Welcome to CPE363", then wait for a key to be pressed on the keypad. If the key pressed is '#' or '*', display on the second line "Hope to enjoy it". Then, wait 5 seconds and repeat the first message and so on. The complete string should be displayed all at once (do not display one char at a time on LCD). Suppose that the two messages are already defined on ROM with labels MSG1 and MSG2. The following assembly programs should have no errors. Make sure to add a comments with your name and ID at the first line. Also, put comments on every line. Moreover, the program should be well aligned with spaces to be readable. Write an Assembly program to use the LCD and keypad. Suppose the following subroutines are already written: InitLCD: initialize the LCD SendCmd: send 8-bit command stored in the accumulator to the LCD SendData: send 8-bit ASCII code stored in the accumulator to the LCD ReadKey: wait for a key to be pressed on the keypad and return its ASCII code in the accumulator Delay: wait 5 seconds Your task is to write the main program that will print on the first line of the LCD the message: "Welcome to CPE363", then wait for a key to be pressed on the keypad. If the key pressed is '#' or '*', display on the second line "Hope to enjoy it". Then, wait 5 seconds and repeat the first message and so on. The complete string should be displayed all at once (do not display one char at a time on LCD). Suppose that the two messages are already defined on ROM with labels MSG1 and MSG2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!