Modify Example 53 Output Hello Instead Hi Submit Code Text Entry Example 53 Stan Warford Q37236186

Modify example 5.3 so that the output is “Hello” instead of”Hi”.

Submit your code as a text entry.

Here is example 5.3:

;Stan Warford

;May 1, 2016

;A program to output “Hi”

;

LDBA 0x000D,d ;Load byte accumulator ‘H’

STBA 0xFC16,d ;Store byte accumulator output device

LDBA 0x000E,d ;Load byte accumulator ‘i’

STBA 0xFC16,d ;Store byte accumulator output device

STOP ;Stop

.ASCII “Hi” ;ASCII “Hi” characters

.END


Answer


Answer is as follows :

Modified Code is :

;A program to output “Hello”

;

LDBA 0x000D,d ;Load byte accumulator ‘H’

STBA 0xFC16,d ;Store byte accumulator outputdevice

LDBA 0x000E,d ;Load byte accumulator ‘e’

STBA 0xFC16,d ;Store byte accumulator outputdevice

LDBA 0x000F,d ;Load byte accumulator ‘l’

STBA 0xFC16,d ;Store byte accumulator outputdevice

LDBA 0x0010,d ;Load byte

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.