Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

ASSEMBLY LANGUAGE PROGRAM OUTPUT ***********************************************

ID: 3809014 • Letter: A

Question

ASSEMBLY LANGUAGE PROGRAM OUTPUT

*****************************************************

*******5.7: What is the output of the following assembly language program?

LDBA 0x0015,d

STBA 0xFC16,d

LDBA 0x0014,d

STBA 0xFC16,d

LDBA 0x0013,d

STBA 0xFC16,d

STOP

.ASCII “gum”

.END

*******5.8: What is the output of the following assembly language program?

LDBA 0x000E,d

STBA 0xFC16,d

LDBA 0x000D,d

STBA 0xFC16,d

STOP

.ASCII “is”

.END

*******5.9: What is the output of below assembly language program if input is g, what is it if the input is A.

LDBA 0xFC15,d

ANDA 0x00A,d

STBA 0xFC16,d

STOP

.WORD 0x00DF

.END

********5.10: What is the output of this assembly language program?

.WORD 0xFFC7 ;First

.BYTE 0x00        ;Second

.BYTE ‘H’           ;Third

.WORD 873     ;Fourth

Explanation / Answer

5.7: What is the output of the following assembly language program?
Solution :
LDBA 0x0015,d ;Load byte accumulator 'g'
STBA 0xFC16,d ;Store byte accumulator output device
LDBA 0x0014,d ;Load byte accumulator 'u'
STBA 0xFC16,d ;Store byte accumulator output device
LDBA 0x0013,d ;Load byte accumulator 'm'
STBA 0xFC16,d ;Store byte accumulator output device
STOP ;Stop
.ASCII “gum” ;ASCII "gum" characters
.END

Assembler Output
D1 00 15 F1 FC 16 D1 00 14 F1 FC 16 D1 00 13 00 F1 FC 16 48 69 zz
Program Output
Hi

5.8: What is the output of the following assembly language program?
Solution

LDBA 0x000E,d ;Load byte accumulator 'i'
STBA 0xFC16,d ;Store byte accumulator output device
LDBA 0x000D,d ;Load byte accumulator 's'
STBA 0xFC16,d ;Store byte accumulator output device
STOP ;Stop
.ASCII “is” ;ASCII "is" characters
.END

OUTPUT
******
D1 00 0D F1 FC 16 D1 00 0E F1 FC 16 00 48 69 zz
is

5.10: What is the output of this assembly language program?
.WORD 0xFFC7 ;First
.BYTE 0x00 ;Second
.BYTE ‘H’ ;Third
.WORD 873 ;Fourth

OUTPUT
*****
-2
85
0055
up

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote