Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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-

image text in transcribed
image text in transcribed
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 8. 2*MAXLEN-1 h. MAXLEN-BUFFER i. FIRST+BUFFER j. FIRST-BUFFER+BUFEND Loc 0000 0000 0003 Line 5 10 13 14 15 20 25 30 35 40 45 50 55 60 65 70 93 0006 000A 000D 0010 0013 0017 OOLA 001D 0020 0023 0026 0021 95 100 0020 0030 0033 0036 1036 1000 105 106 107 110 115 120 125 130 Source statement Object code COPY START 0 FIRST STL RETAR 17202D DB LENGTH 692020 BASE LENGTH CLOOP JSUB RDREC 48101036 LDA LENGTH 032026 COMP . 290000 JED ENDFIL 332007 JSUB WRRET 48101050 J CLOOP 372722 ENDFIL LDA CE" 032010 STA BUFFER OF 2016 IDA 63 010003 STA LENGTH OF 2000 JSUB WRREC 4B10105D RETADR 3E2003 LTORC CE 45446 RETADR RESW ENGTH RES BUTTER RESS 4096 BUFEND EQU MUXLEN EQU BUFEND-BUFFER SUBROUTINE TO READ RECORD DNO BUFFER ROREX CLEAR 3410 CLEAR 5400 CLEAR s 3440 LOT IMAXLEN 75101000 RLOOP TD INPUT 232019 JEO RLOOP 332FYA RD INPUT DB2013 A.S A004 JEO EXIT 332008 STCH BUFFER, X 570003 TIXR T 3850 JLT RLOOP 3B2EA EUIT STX LENGTH 134000 RSUB 4F0000 INPUT BYTE X Fl FI SURROUTINE TO WRITE RECORD FROM SUPPER WRREC CLEAR 8410 LDT LENGTH 774000 WLOOP TD E3 2011 JE WLOOP 332F7A LOCH BUFFER.X 530003 NO X'05 DF 2008 TER 3850 JLT WLOOP 38272 RSUS 4F0000 END FIRST -X'05 05 132 1036 1038 103A 103C 1040 1043 1046 1049 1048 104E 1051 1053 1056 1059 205C 133 135 140 145 150 155 160 165 170 175 180 COMPR 185 -X05 195 200 205 210 212 215 220 225 230 235 240 245 255 1050 105F 1062 1065 1068 1068 106E 1070 1073 1076 Figure 2.10 Program from Fig. 29 with object code. 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 8. 2*MAXLEN-1 h. MAXLEN-BUFFER i. FIRST+BUFFER j. FIRST-BUFFER+BUFEND Loc 0000 0000 0003 Line 5 10 13 14 15 20 25 30 35 40 45 50 55 60 65 70 93 0006 000A 000D 0010 0013 0017 OOLA 001D 0020 0023 0026 0021 95 100 0020 0030 0033 0036 1036 1000 105 106 107 110 115 120 125 130 Source statement Object code COPY START 0 FIRST STL RETAR 17202D DB LENGTH 692020 BASE LENGTH CLOOP JSUB RDREC 48101036 LDA LENGTH 032026 COMP . 290000 JED ENDFIL 332007 JSUB WRRET 48101050 J CLOOP 372722 ENDFIL LDA CE" 032010 STA BUFFER OF 2016 IDA 63 010003 STA LENGTH OF 2000 JSUB WRREC 4B10105D RETADR 3E2003 LTORC CE 45446 RETADR RESW ENGTH RES BUTTER RESS 4096 BUFEND EQU MUXLEN EQU BUFEND-BUFFER SUBROUTINE TO READ RECORD DNO BUFFER ROREX CLEAR 3410 CLEAR 5400 CLEAR s 3440 LOT IMAXLEN 75101000 RLOOP TD INPUT 232019 JEO RLOOP 332FYA RD INPUT DB2013 A.S A004 JEO EXIT 332008 STCH BUFFER, X 570003 TIXR T 3850 JLT RLOOP 3B2EA EUIT STX LENGTH 134000 RSUB 4F0000 INPUT BYTE X Fl FI SURROUTINE TO WRITE RECORD FROM SUPPER WRREC CLEAR 8410 LDT LENGTH 774000 WLOOP TD E3 2011 JE WLOOP 332F7A LOCH BUFFER.X 530003 NO X'05 DF 2008 TER 3850 JLT WLOOP 38272 RSUS 4F0000 END FIRST -X'05 05 132 1036 1038 103A 103C 1040 1043 1046 1049 1048 104E 1051 1053 1056 1059 205C 133 135 140 145 150 155 160 165 170 175 180 COMPR 185 -X05 195 200 205 210 212 215 220 225 230 235 240 245 255 1050 105F 1062 1065 1068 1068 106E 1070 1073 1076 Figure 2.10 Program from Fig. 29 with object code

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Forensic And Investigative Accounting

Authors: D. Larry Crumbley, Lester E. Heitger, G. Stevenson Smith

6th Edition

0808034871, 9780808034872

More Books

Students also viewed these Accounting questions