;scanf ("tc", &letter) 0004 DIFC15 main: 0007 F10003 000A D10003 while: 000D BO002A 0010 18002E 0013 BO0020 if: 0016 1A0022 0019 DO000A 001c F1FC16 charIn,d letter,d letter,d LDBA STBA LDBA ;while (letter !- '') CPBA BREQ CPBA endwh ;if (letter else "\n',i charout,d endIf charout,d BRNE LDBA printf("\n") STBA 001F 120025 0022 F1FC16 else: BR STBA ;printf("&c", letter)
;scanf ("tc", &letter) 0004 DIFC15 main: 0007 F10003 000A D10003 while: 000D BO002A 0010 18002E 0013 BO0020 if: 0016 1A0022 0019 DO000A 001c F1FC16 charIn,d letter,d letter,d LDBA STBA LDBA ;while (letter !- '') CPBA BREQ CPBA endwh ;if (letter else "\n',i charout,d endIf charout,d BRNE LDBA printf("\n") STBA 001F 120025 0022 F1FC16 else: BR STBA ;printf("&c", letter)
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
question in image

Transcribed Image Text:0000 120004
0003 00
main
letter: .BLOCK 1
BR
;global variable #1c
DIFC15 main:
LDBA
;scanf ("%c", &letter)
charIn,d
letter,d
letter,d
**',i
endwh
',i
else
'\n',i
charout,d
endIf
charout,d
charIn,d
letter,d
while
0004
0007 F10003
000A D10003 while:
000D BO002A
STBA
LDBA
;while (letter !- '*')
СРВА
BREQ
СРВА
BRNE
18002E
0010
0013 BO0020 if:
0016 1A0022
0019 DO000A
;if (letter =-
LDBA
;printf("\n")
001c F1FC16
001F 120025
0022 F1FC16 else:
0025 D1FC15 endIf:
0028 F10003
002B 12000A
002E 00
002F
STBA
BR
;printf("%c", letter)
;scanf ("8c", &letter)
STBA
LDBA
STBA
BR
endwh:
STOP
.END
For the above code the following statement(s) are true
O The code contains local variables
O The sentinal value used to end the input string is the exclamation mark !
The code contains both a loop and an if else structure
The code contains 3 different types of Pep/9 addressing modes
BRNE will perform a branch when the Zero flag is 0
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education