Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q4 Literals & LTORG 35 Points Refer to the following assembly listing file generated from assembling in the SIC/XE architecutre. Note that some assembled information
Q4 Literals & LTORG 35 Points Refer to the following assembly listing file generated from assembling in the SIC/XE architecutre. Note that some assembled information was intentionally hidden. Line Loc 0000 10 20 ASSESS START FIRST +LDB BASE 0 #RETADR RETADR 30 40 50 0004 0007 000A STL LDA LDA RETADR #BADR @RETADR OOOD 2047 60 70 80 BUFFER RESB BUFEND EQU BUFSIZE EQU * BUFEND-BUFFER 90 080C RETADR RESW 1 100 110 080F 0812 BADR BYTE OUTPUT BYTE C'FOO' X'01' 120 130 140 0813 0815 0818 CLEAR LDX LDT A #1 #BUFSIZE WLOOP 150 160 170 180 081B 081E 0821 0824 TD JEQ LDCH WD OUTPUT WLOOP BADR,X =X'01' 190 NOBASE 200 0827 +LDA CADR 210 220 230 082A 105E TADR CADR RESW WORD END 700 5 FIRST Note that you can right click and open the image in a new tab on your browser. Answer the questions that follow: Q4.1 EQU 5 Points What would be the assigned address for * Line 70 (Addr) BUFEND EQU Please enter the address in hexadecimal format, put the address WITHOUT the Ox prefix, for example, for an address 0x100A, put 100A in the address blank (NO SPACE, use CAPITAL for characters). Your answer should be exactly four characters. Enter your answer here Q4.2 Line 180 Address 5 Points What address would the assembler assign for defining the X'01' literal used in Line 180? Please enter the address in hexadecimal format, put the address WITHOUT the Ox prefix, for example, for an address 0x100A, put 100A in the address blank (NO SPACE, use CAPITAL for characters). Your answer should be exactly four characters. Enter your answer here Q4.3 Line 180 Addressing Mode 5 Points Refer to Line 180 180 0824 WD =X'01' What is the addressing mode used to calculate the TA? Direct Base Relative PC Relative Q4.4 Line 180 Object Code 5 Points Refer to Line 180 180 0824 WD =X'01' What is the object code generated? Please enter all object codes here in hexadecimal format WITHOUT the Ox prefix. For example, for an object code Ox12345A, put 12345A in the blank. Enter your answer here Line 180: WD =X'01' TA Addressing Mode: Base Relative Operand Addressing Mode: Simple Format: Format 3 Object Code: DF4855 Opcode: 1101 11 (WD is DC) ) NIXBPE: 11 0100 Disp: 1061 080C = 0855 Q4.5 LTORG 5 Points Assume we update the provided assembly code by inserting an LTORG instruction on Line 195 as following: 190 NOBASE 195 LTORG 200 TADR +LDA CADR What address would the assembler assign for defining the X'01' literal used in Line 180 after the above change? Please enter the address in hexadecimal format, put the address WITHOUT the Ox prefix, for example, for an address 0x100A, put 100A in the address blank (NO SPACE, use CAPITAL for characters). Your answer should be exactly four characters. Enter your answer here Q4.6 Line 180 Addressing Mode with LTORG 5 Points With the addition of the LTORG directive on Line 195, what is the addressing mode used to calculate the TA for Line 180? 180 0824 WD =X'01' Direct Base Relative PC Relative Q4.7 Line 180 Object Code with LTORG 5 Points With the addition of the LTORG directive on Line 195, what is the object code generated for Line 180? 180 0824 WD =X'01' Please enter all object codes here in hexadecimal format WITHOUT the Ox prefix. For example, for an object code 0x12345A, put 12345A in the blank. Enter your answer here
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started