17 relocated code 6 7 global esd 1000 17203a 5000

Info icon This preview shows pages 2–4. Sign up to view the full content.

View Full Document Right Arrow Icon
17
Image of page 2

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Relocated code : (6 - 7) Global ESD 1000 17203A 5000 172032 (EXTDEF part) 1003 B410 5003 032023 RTN1 1000 1005 B440 5006 4B100000 OUTTX 1049 1007 03900000 500A 03201F 100B 9004 500D 4B100000 RTN2 5000 100D 4B100000 5011 03201B TABLE 5038 1011 03202C 5014 4B100000 TABLEN 793C 1014 4B101049 5018 032017 1018 B810 501B 4B100000 RTN3 10000 101A B810 501F 4B100000 OUTNM 10002 101C 2F100000 5023 0B200F 1020 3B2FE4 5026 4F0000 (EXTREF part) 1023 692FE1 5029 53554D TABLE 1008 1026 03201A 502C 20524F OUTNM 100E 1029 4B101049 502F 555449 TABLEN 101D 102D 032016 5032 4E450A OUTNM 1037 1030 4B101049 5035 1034 AC40 5038 OUTTX 5007 1036 4B100000 793C 002904 OUTTX 500E 103A 3E2000 OUTTX 5015 1040 04E9C3 OUTTX 501E 1043 53554D 10000 5233 RTN1 5020 1046 203D20 10002 172018 1049 13201E 10005 032018 OUTTX 10009 104C B410 10008 4B100000 OUTTX 10010 104E 6D0003 1000C 032014 OUTTX 10017 1051 E32019 1000F 4B100000 1054 332FFA 10013 03201A 1057 A707 10016 4B100000 1059 DF2011 1001A 3E2000 105C B840 1001D 105E 3B2FF0 10020 535455 1061 072006 10023 422020 1064 4F0000 10026 20200A 1067 032004 106A 106D 05 106E 53554D
Image of page 3
Code in final form : execution starts at 5000 (hex) (8 - 9) ESD RLD 1000 17203A 1051 E32019 502C 20524F RLD: 1008 1003 B410 1054 332FFA 502F 555449 100E 1005 B440 1057 A707 5032 4E450A 1015 1007 03905038 1059 DF2011 5035 101D 100B 9004 105C B840 5038 102A 100D 4B110002 105E 3B2FF0 793C 002904 1031 1011 03202C 1061 072006 1037 1014 4B101049 1064 4F0000 5007 1018 B810 1067 032004 10000 5233 500E 101A B810 106A 10002 172018 5015 101C 2F10793C 106D 05 10005 032018 501E 1020 3B2FE4 106E 53554D 10008 4B101049 5020 1023 692FE1 1000C 032014 10009 1026 03201A 5000 172032 1000F 4B101049 10010 1029 4B101049 5003 032023 10013 03201A 10017 102D 032016 5006 4B101049 10016 4B101049 ESD: 1030 4B101049 500A 03201F 1001A 3E2000 (EXTDEF part) 1034 AC40 500D 4B101049 1001D RTN1 1000 1036 4B110002 5011 03201B 10020 535455 OUTTX 1049 103A 3E2000 5014 4B101049 10023 422020 RTN2 5000 1040 04E9C3 5018 032017 10026 20200A TABLE 5038 1043 53554D 501B 4B101049 TABLEN 793C 1046 203D20 501F 4B110000 RTN3 10000 1049 13201E 5023 0B200F OUTNM 10002 104C B410 5026 4F0000 (EXTREF part) 104E 6D0003 5029 53554D (empty) --------------------------------------------------------------------------- Memory segment : (10 - 11) loc contents 0 1 2 3 4 5 6 7 8 9 A B C D E F 0000 FFFFFFFF FF020000 15000010 6F200190 0010 04740010 AC020500 036B1000 00104C00 0020 00000017 205CB410 4B202257 20574B20 The 5 integers beginning at location 0003 (hex): 1. FFFF02 = -254 2. 000015 = 21 3. 000010 = 16 4. 6F2001 = 7,282,689 5. 900474 = -7,338,892 Trace of execution of the code PC = 009 through PC = 020: loc instruction action result (PC) (disp) (X) 009 000010 LDA 0x10 load 047400 into A (simple SIC) 00C 6F2001 LDS 0xF + 0x1 load 047400 into S 00F 9004 ADDR A,S S gets 047400 + 047400 = 08E800 011 740010 LDT 0x10 load 047400 into T (simple SIC) 014 AC02 RMO A,L copy A = 047400 into L 016 050003 LDX #3 load 3 into X 019 6B100000 +LDB 0x0 load FFFFFF into B 01D 104C00 STX 0x4C00 store X at 4C00 (simple SIC) 020 000000 LDA 0x0 load FFFFFF into A (simple SIC) Value of registers at this point: A = FFFFFF X = 000003 L = 047400 B = FFFFFF S = 08E800 T = 047400
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern