{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

CSCI212Week7Chapter6Questions - Week 7 Chapter 6 Questions...

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

View Full Document Right Arrow Icon
Week 7 Chapter 6 Questions True/False 1. A WHILE loop can be constructed with a CMP instruction at the bottom of the loop, followed by a conditional jump instruction. 2. In a finite-state machine, transitions between states usually occur when a new value has been read from input. 3. The following finite-state machine could be used to successfully validate the string "234+": 4. Fill in the Blanks and Short Answer 5. In the following instruction sequence, show the changed values of AL where indicated, in binary: mov al,11001111b and al,00101011b ; a. mov al,4Bh and al,6Ch ; b. mov al,00111100b or al,82h ; c. mov al,94h xor al,37h ; d. 6. In the following instruction sequence, show the changed values of AL where indicated, in hexadecimal: mov al,9Ch not al ; a. mov al,4Bh and al,74h ; b. mov al,86h or al,42h ; c. mov al,72h xor al,0A5h ; d. 7. Code a single instruction that clears bits 0, 3, and 4 in the AL register. 8. Code instructions that jump to the label L1 when either bit 2 or 3 is set in the DL register (do not modify DL). 9. Code instructions that jump to the label L2 when the signed integer in BL is greater than - 5.
Image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
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