READING CODE - STACK 2 47 mov al, 0; Return code of 0 mov ah, 4ch: Exit back to MSDOS int 21h list the output of the following program assuming the input is as follows: 48 49 50 51 Main ENDP 52 3 101 4 232 5 48 6 17 53 Data ; re-enter the data segment for this procedure 54 7 include PCMAC.INC 55 MessageSub DB 'Enter a number S' 56 Mystery DW? 57 58 CODE ; return to coding 9 NEWLINE EQU PutCh 13, 10 10 MODEL SMALL 12 11 STACK 100h DATA Messagel DB 'Total sold today, S' 15 Message2 DB'_ is: S' 16 13 59 60 Sublnput PROC 61 14 mov cx, 4 62 myLoop: 63 PutStr MessageSub call GetDec add Mystery, ax dec cx inz myLoop mov ax, Mystery 17 CODE EXTERN GetDec: NEAR, PutDec:NEAR 18 64 19 65 66 67 20 Main PROC 21 mov ax, @data mov ds, ax GetDate push cx push dx push dx call Sublnput :send control to subprocedure mov bx, ax 22 68 69 23 ret 24 70 71 Sublnput ENDP 72 73 25 26 END Main ; Tells where to start execution 27 28 29 30 74 75 76 | PutStr Messagel pop dx mov al, dh mov ah, 0 call PutDec PutCh" pop dx mov al, dl 31 32 33 34 35 36 37 38 mov ah, 0 call PutDec 39 PutCh " 40 рoр сх 41 mov ax, cx 42 call PutDec PutStr Message2 mov ax, bx call PutDec NEWLINE 43 44 45 46
READING CODE - STACK 2 47 mov al, 0; Return code of 0 mov ah, 4ch: Exit back to MSDOS int 21h list the output of the following program assuming the input is as follows: 48 49 50 51 Main ENDP 52 3 101 4 232 5 48 6 17 53 Data ; re-enter the data segment for this procedure 54 7 include PCMAC.INC 55 MessageSub DB 'Enter a number S' 56 Mystery DW? 57 58 CODE ; return to coding 9 NEWLINE EQU PutCh 13, 10 10 MODEL SMALL 12 11 STACK 100h DATA Messagel DB 'Total sold today, S' 15 Message2 DB'_ is: S' 16 13 59 60 Sublnput PROC 61 14 mov cx, 4 62 myLoop: 63 PutStr MessageSub call GetDec add Mystery, ax dec cx inz myLoop mov ax, Mystery 17 CODE EXTERN GetDec: NEAR, PutDec:NEAR 18 64 19 65 66 67 20 Main PROC 21 mov ax, @data mov ds, ax GetDate push cx push dx push dx call Sublnput :send control to subprocedure mov bx, ax 22 68 69 23 ret 24 70 71 Sublnput ENDP 72 73 25 26 END Main ; Tells where to start execution 27 28 29 30 74 75 76 | PutStr Messagel pop dx mov al, dh mov ah, 0 call PutDec PutCh" pop dx mov al, dl 31 32 33 34 35 36 37 38 mov ah, 0 call PutDec 39 PutCh " 40 рoр сх 41 mov ax, cx 42 call PutDec PutStr Message2 mov ax, bx call PutDec NEWLINE 43 44 45 46
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
- What is the purpose of lines 36 and 37?
- How does the assembler know where the start of the
program is?
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