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