Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1) Determine the unknown contents in the areas that marked with ?? for the following .Ist file. All the marked areas are related to either

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

1) Determine the unknown contents in the areas that marked with "??" for the following .Ist file. All the marked areas are related to either the address or the number of steps for forward or backward branch. 0014 equ 20 1500 org $1500 1500 maxval ds.b | 1 2000 org $2000 2000 b6 ?? ?? ldaa array 2003 7a ?? ?? staa maxval | 2006 | ce ?? ?? idx #array+N-1 2009 C6 ?? ldab #N-1 200b b6 ?? ?? loop ldaa maxval 2002 al 00 cmpa 0,X 2010 20 ?? bge chkend 2012 a600 | ldaa 0, X | 2014 | 7a ?? ?? staa maxval | 2017 | 09 chkend dex 2018 0431 ?? dbne b, loop 201b 20 fe forever bra forever 2010 01 03 05 06 13 29 array dc. b 1 ,3,5,6,19, 41 2023 35 10 od 2a 400e | dc.b 53,28,13,42,76,14 2029 14 36 40 4ald 21 dc.b 20,54,64, 74,29,33 2028 | 29 | 2d dc.b 41,45 end Note: All data for the machine code are in Hex. All entries for each blank have to be in two characters, like 04 instead of 4. Fill in the blanks (derived from the shaded cell above) for the followings: 2000 b6 ldaa array (16 pts) (2 pts) (1 pt) 2003 staa maxval 2006 ldx #array+N-1 (2 pts) do on 2009 ldab #N-1 (2 pts) (1 pt) loop ldaa maxval 2006 2010 bge chkend (3 pts) bge chkend (3 pts) 2010 2014 2018 7a - staa maxval (1 pt) (4 pts) dbne b, loop 2. a). The contents of all registers are as shown before executing the following instruction: LDAA [-14,X] (2 pts) Show the content in Accumulator A after executing the above instruction. Address Address Address AB $1510 $00 $1500 $00 $1511 $15 $1501 $11 $1512 $0A $1502 $22 $1513 $15 $1503 $33 $1505 $1514 $OB $1504 $44 $1515 $15 $1505 $55 $OC $1516 $1506 $66 x $1525 $1517 $15 $1507 $77 $1518 $OD $1508 $88 $1519 $15 $1509 $99 $151A $0E $150A $AA $151B $150B $BB $151C $150C $CC $151D $15 $150D $DD $150E SEE $150F $15 $OF b) The contents of all registers are as shown before executing the following instruction: LDAB [12,Y] (2 pts) Show the content in Accumulator B after executing the above instruction. Address Address Address $00 $00 $15 $OA $15 $OB Y $1505 $15 $OC $22 $33 $44 $55 $66 $77 $88 $99 X $1510 $1511 $1512 $1513 $1514 $1515 $1516 $1517 $1518 $1519 $151A $151B $151C $151D $1525 $1500 $1501 $1502 $1503 $1504 $1505 $1506 $1507 $1508 $1509 $150A $150B $150C $150D $150E $150F SAA $OD $15 $0E $15 $OF $15 $BB $CC $DD $EE c). The contents of all registers are as shown before executing the following instruction: LDAB 7,7 (2 pts) $1501 $33 Y x Show the content in Accumulator B after executing the above instruction. Address Address Address $1510 $00 $1500 $00 $1511 $15 $11 $1512 $0A $1502 $22 $1513 $15 $1503 $1505 $1514 $ $1504 $44 $1515 $15 $1505 $55 $OC $1516 $1506 $66 $1525 $1517 $15 $1507 $77 $1518 $OD $1508 $88 $1519 $15 $1509 $99 $151A $0E $150A $AA $151B $15 $150B $151C $150C $151D $15 $150D $DD $150E $EE $150F $FF $BB SCC $OF d) The contents of all registers are as shown before executing the following instruction: LDAA -9, (2 pts) Show the content in Accumulator A after executing the above instruction. Address Address Y $1505 $00 $15 $0A $15 $OB $15 $OC $15 $OD $15 $0E x $1510 $1511 $1512 $1513 $1514 $1515 $1516 $1517 $1518 $1519 $151A $151B $151C $151D $1525 Address $1500 $1501 $1502 $1503 $1504 $1505 $1506 $1507 $1508 $1509 $150A $150B $150C $150D $150E $150F $00 $11 $22 $33 $44 $55 $66 $77 $88 $99 $AA $BB $CC $DD $EE $15 $OF $15 e) The contents of all registers are as shown before executing the following instruction: LDD $1511 (2 pts) Show the content in Accumulator D after executing the above instruction. Address Address Address $1510 $00 $1500 $1511 $15 $1501 $1512 $OA $1502 $1513 $15 $1503 $1505 $1514 $OB $1504 $1515 $15 $1505 $OC $1516 $1506 $1525 $1517 $15 $1507 $1518 $OD $1508 $1519 $15 $1509 $151A $0E $150A $151B $15 $150B $151C $OF $150C $151D | $15 $150D $150E $150F $00 $11 $22 $33 $44 $55 $66 $77 $88 $99 $AA $BB $CC $DD SEE $FF f) The contents of all registers are as shown before executing the following instruction: LDD #$1515 (2 pts) Show the content in Accumulator D after executing the above instruction Address Address $00 $11 $00 $15 $0A $15 $OB $15 $0C Y $1505 $22 $33 $44 $55 $66 x $1525 4640 $1510 $1511 $1512 $1513 $1514 $1515 $1516 $1517 $1518 $1519 $151A $151B $151C $151D $15 Address $1500 $1501 $1502 $1503 $1504 $1505 $1506 $1507 $1508 $1509 $150A $150B $150C $150D $150E $150F $77 $OD $15 $0E $15 $OF $88 $99 SAA $BB $CC $DD SEE $FF $15 1) Determine the unknown contents in the areas that marked with "??" for the following .Ist file. All the marked areas are related to either the address or the number of steps for forward or backward branch. 0014 equ 20 1500 org $1500 1500 maxval ds.b | 1 2000 org $2000 2000 b6 ?? ?? ldaa array 2003 7a ?? ?? staa maxval | 2006 | ce ?? ?? idx #array+N-1 2009 C6 ?? ldab #N-1 200b b6 ?? ?? loop ldaa maxval 2002 al 00 cmpa 0,X 2010 20 ?? bge chkend 2012 a600 | ldaa 0, X | 2014 | 7a ?? ?? staa maxval | 2017 | 09 chkend dex 2018 0431 ?? dbne b, loop 201b 20 fe forever bra forever 2010 01 03 05 06 13 29 array dc. b 1 ,3,5,6,19, 41 2023 35 10 od 2a 400e | dc.b 53,28,13,42,76,14 2029 14 36 40 4ald 21 dc.b 20,54,64, 74,29,33 2028 | 29 | 2d dc.b 41,45 end Note: All data for the machine code are in Hex. All entries for each blank have to be in two characters, like 04 instead of 4. Fill in the blanks (derived from the shaded cell above) for the followings: 2000 b6 ldaa array (16 pts) (2 pts) (1 pt) 2003 staa maxval 2006 ldx #array+N-1 (2 pts) do on 2009 ldab #N-1 (2 pts) (1 pt) loop ldaa maxval 2006 2010 bge chkend (3 pts) bge chkend (3 pts) 2010 2014 2018 7a - staa maxval (1 pt) (4 pts) dbne b, loop 2. a). The contents of all registers are as shown before executing the following instruction: LDAA [-14,X] (2 pts) Show the content in Accumulator A after executing the above instruction. Address Address Address AB $1510 $00 $1500 $00 $1511 $15 $1501 $11 $1512 $0A $1502 $22 $1513 $15 $1503 $33 $1505 $1514 $OB $1504 $44 $1515 $15 $1505 $55 $OC $1516 $1506 $66 x $1525 $1517 $15 $1507 $77 $1518 $OD $1508 $88 $1519 $15 $1509 $99 $151A $0E $150A $AA $151B $150B $BB $151C $150C $CC $151D $15 $150D $DD $150E SEE $150F $15 $OF b) The contents of all registers are as shown before executing the following instruction: LDAB [12,Y] (2 pts) Show the content in Accumulator B after executing the above instruction. Address Address Address $00 $00 $15 $OA $15 $OB Y $1505 $15 $OC $22 $33 $44 $55 $66 $77 $88 $99 X $1510 $1511 $1512 $1513 $1514 $1515 $1516 $1517 $1518 $1519 $151A $151B $151C $151D $1525 $1500 $1501 $1502 $1503 $1504 $1505 $1506 $1507 $1508 $1509 $150A $150B $150C $150D $150E $150F SAA $OD $15 $0E $15 $OF $15 $BB $CC $DD $EE c). The contents of all registers are as shown before executing the following instruction: LDAB 7,7 (2 pts) $1501 $33 Y x Show the content in Accumulator B after executing the above instruction. Address Address Address $1510 $00 $1500 $00 $1511 $15 $11 $1512 $0A $1502 $22 $1513 $15 $1503 $1505 $1514 $ $1504 $44 $1515 $15 $1505 $55 $OC $1516 $1506 $66 $1525 $1517 $15 $1507 $77 $1518 $OD $1508 $88 $1519 $15 $1509 $99 $151A $0E $150A $AA $151B $15 $150B $151C $150C $151D $15 $150D $DD $150E $EE $150F $FF $BB SCC $OF d) The contents of all registers are as shown before executing the following instruction: LDAA -9, (2 pts) Show the content in Accumulator A after executing the above instruction. Address Address Y $1505 $00 $15 $0A $15 $OB $15 $OC $15 $OD $15 $0E x $1510 $1511 $1512 $1513 $1514 $1515 $1516 $1517 $1518 $1519 $151A $151B $151C $151D $1525 Address $1500 $1501 $1502 $1503 $1504 $1505 $1506 $1507 $1508 $1509 $150A $150B $150C $150D $150E $150F $00 $11 $22 $33 $44 $55 $66 $77 $88 $99 $AA $BB $CC $DD $EE $15 $OF $15 e) The contents of all registers are as shown before executing the following instruction: LDD $1511 (2 pts) Show the content in Accumulator D after executing the above instruction. Address Address Address $1510 $00 $1500 $1511 $15 $1501 $1512 $OA $1502 $1513 $15 $1503 $1505 $1514 $OB $1504 $1515 $15 $1505 $OC $1516 $1506 $1525 $1517 $15 $1507 $1518 $OD $1508 $1519 $15 $1509 $151A $0E $150A $151B $15 $150B $151C $OF $150C $151D | $15 $150D $150E $150F $00 $11 $22 $33 $44 $55 $66 $77 $88 $99 $AA $BB $CC $DD SEE $FF f) The contents of all registers are as shown before executing the following instruction: LDD #$1515 (2 pts) Show the content in Accumulator D after executing the above instruction Address Address $00 $11 $00 $15 $0A $15 $OB $15 $0C Y $1505 $22 $33 $44 $55 $66 x $1525 4640 $1510 $1511 $1512 $1513 $1514 $1515 $1516 $1517 $1518 $1519 $151A $151B $151C $151D $15 Address $1500 $1501 $1502 $1503 $1504 $1505 $1506 $1507 $1508 $1509 $150A $150B $150C $150D $150E $150F $77 $OD $15 $0E $15 $OF $88 $99 SAA $BB $CC $DD SEE $FF $15

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

Step: 3

blur-text-image

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

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions

Question

Compare and contrast long-term and short-term orientation cultures

Answered: 1 week ago

Question

Discuss the research behind the notion of a pancultural self

Answered: 1 week ago