17. Referring to the definitions of symbols in Fig. 2.10, give the value, type, and intuitive meaning (if any) of each of the following expres- sions: a. BUFFER-FIRST b. BUFFER+4095 c. MAXLEN-1 d. BUFFER+MAXLEN-1 e. BUFFER-MAXLEN f. 2*LENGTH

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
icon
Related questions
Topic Video
Question
100%
17. Referring to the definitions of symbols in Fig. 2.10, give the value,
type, and intuitive meaning (if any) of each of the following expres-
sions:
a. BUFFER-FIRST
b. BUFFER+4095
c. MAXLEN-1
d. BUFFER+MAXLEN-1
e. BUFFER-MAXLEN
f. 2*LENGTH
120
Chapter 2 Assemblers
g. 2*MAXLEN-1
h. MAXLEN-BUFFER
i. FIRST+BUFFER
j. FIRST-BUFFER+BUFEND
Transcribed Image Text:17. Referring to the definitions of symbols in Fig. 2.10, give the value, type, and intuitive meaning (if any) of each of the following expres- sions: a. BUFFER-FIRST b. BUFFER+4095 c. MAXLEN-1 d. BUFFER+MAXLEN-1 e. BUFFER-MAXLEN f. 2*LENGTH 120 Chapter 2 Assemblers g. 2*MAXLEN-1 h. MAXLEN-BUFFER i. FIRST+BUFFER j. FIRST-BUFFER+BUFEND
Line
Loc
Source statement
Object code
START
STL
5
0000
COPY
FIRST
10
0000
RETADR
17202D
13
0003
LDB
*LENGTH
69202D
14
BASE
LENGTH
15
20
0006
CLOOP
+JSUB
RDREC
4B101036
032026
000A
LDA
LENGTH
25
000D
COMP
#0
290000
30
0010
JEQ
ENDFIL
332007
35
0013
+JSUB
WRREC
4B10105D
40
0017
J
CLOOP
3F2FEC
45
001A
ENDFIL
LDA
=C'EOF'
032010
50
001D
STA
BUFFER
OF2016
55
0020
LDA
#3
010003
60
0023
STA
LENGTH
OF200D
65
70
0026
+JSUB
WRREC
4B10105D
002A
J
ERETADR
3E2003
93
LTORG
002D
=C'EOF'
454F46
95
0030
RETADR
RESW
1
100
0033
0036
LENGTH
RESW
1
105
BUFFER
RESB
4096
106
107
1036
BUFEND
EQU
EQU
1000
МАXLEN
BUFEND-BUFFER
110
115
SUBROUTINE TO READ RECORD INTO BUFFER
120
125
1036
RDREC
CLEAR
B410
130
1038
CLEAR
A
B400
132
103A
CLEAR
+LDT
TD
В40
133
103C
#MAXLEN
75101000
135
140
1040
RLOOP
INPUT
Е32019
1043
1046
1049
332FFA
JEQ
RD
RLOOP
145
INPUT
DB2013
150
COMPR
A,S
A004
155
104B
332008
JEQ
STCH
EXIT
BUFFER, X
57с003
в850
160
104E
165
1051
TIXR
T
170
1053
JLT
RLOOP
3B2FEA
175
1056
STX
RSUB
EXIT
LENGTH
134000
180
185
1059
4F0000
105C
INPUT
BYTE
X'Fl'
F1
195
200
SUBROUTINE TO WRITE RECORD FROM BUFFER
205
B410
4000רר
210
WRREC
CLEAR
105D
105F
1062
212
LDT
LENGTH
215
WLOOP
TD
=X'05'
Е32011
220
1065
WLOOP
332FFA
JEQ
LDCH
225
1068
BUFFER, X
53C003
230
106B
WD
=X'05'
DF2008
235
B850
106E
1070
1073
TIXR .
T
3B2FEF
4F0000
240
JLT
WLOOP
245
RSUB
255
END
FIRST
1076
=X'05'
05
n om
Transcribed Image Text:Line Loc Source statement Object code START STL 5 0000 COPY FIRST 10 0000 RETADR 17202D 13 0003 LDB *LENGTH 69202D 14 BASE LENGTH 15 20 0006 CLOOP +JSUB RDREC 4B101036 032026 000A LDA LENGTH 25 000D COMP #0 290000 30 0010 JEQ ENDFIL 332007 35 0013 +JSUB WRREC 4B10105D 40 0017 J CLOOP 3F2FEC 45 001A ENDFIL LDA =C'EOF' 032010 50 001D STA BUFFER OF2016 55 0020 LDA #3 010003 60 0023 STA LENGTH OF200D 65 70 0026 +JSUB WRREC 4B10105D 002A J ERETADR 3E2003 93 LTORG 002D =C'EOF' 454F46 95 0030 RETADR RESW 1 100 0033 0036 LENGTH RESW 1 105 BUFFER RESB 4096 106 107 1036 BUFEND EQU EQU 1000 МАXLEN BUFEND-BUFFER 110 115 SUBROUTINE TO READ RECORD INTO BUFFER 120 125 1036 RDREC CLEAR B410 130 1038 CLEAR A B400 132 103A CLEAR +LDT TD В40 133 103C #MAXLEN 75101000 135 140 1040 RLOOP INPUT Е32019 1043 1046 1049 332FFA JEQ RD RLOOP 145 INPUT DB2013 150 COMPR A,S A004 155 104B 332008 JEQ STCH EXIT BUFFER, X 57с003 в850 160 104E 165 1051 TIXR T 170 1053 JLT RLOOP 3B2FEA 175 1056 STX RSUB EXIT LENGTH 134000 180 185 1059 4F0000 105C INPUT BYTE X'Fl' F1 195 200 SUBROUTINE TO WRITE RECORD FROM BUFFER 205 B410 4000רר 210 WRREC CLEAR 105D 105F 1062 212 LDT LENGTH 215 WLOOP TD =X'05' Е32011 220 1065 WLOOP 332FFA JEQ LDCH 225 1068 BUFFER, X 53C003 230 106B WD =X'05' DF2008 235 B850 106E 1070 1073 TIXR . T 3B2FEF 4F0000 240 JLT WLOOP 245 RSUB 255 END FIRST 1076 =X'05' 05 n om
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Instruction Format
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education