I need help understanding both instructions. The answers are provied in hex valu
ID: 2247930 • Letter: I
Question
I need help understanding both instructions. The answers are provied in hex values I am working in assembly code can somebody work both problems step by step.
test 1 soallpat-Adobe Acrobat Reader UC rile dit Vien Wnelp Home Tools sol fall.pdfx test 1 fallpdf chapz microintro.pdtf chap3 picintro.pdf chap4 lcgctri ops.,p.. chaps extprec.pdf est 1 +) sol@msstate.edu page 4 of 8 Address WO Wl W2 Data 0x2FFF OxDF1 0x9057 0x2F2A Address 0x1000 0x1002 0x1004 0x1006 Data 0x763D 0x4801 0x781B 0x01FF Assume Z = False. C = False initially (5 points per problem) Assume the above memory 'register contents and initial C and Z values at the STARI ofeach instruction After the instrutio is executed. give the new values of auy modified register or meory contents as well as the ne C and Z values. When the modified item is a memory value, always give the 16-bit value, so the address should always be even When writing a modified register value, write the entire 16-bit value. Give C and Z values as True or False 15. Modified 16-bit 16. New 16-bit 17. New Z 18. New C bit address register 0x1006 Instruction data valuc OxOOFF bit True dec.b 0x1007 True 19. Modified 16-bit address/register WO 20. New 16-bit data value 0x0002 Instructioin 22. New C bit 21. New Z bit False FalseExplanation / Answer
instruction 1)
dec b 0x1007 => decrements specified operand by 1 0x1007-1 = 0x1006 which is nothing byt Modified 16 bit address/register. Data contained in that address is given in the top right corner table as 0x00FF
instruction 2)
and W2,W3,W0 => W0 = W3 and W2 = 0x2F2A and 0x2FFF = 0x0002
W0 content is not equal to zero . so zero flag is reset and there is no carry so C flag is reset
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.