CSCI212Week7Chapter6Questions

CSCI212Week7Chapter6Questions - Week 7 Chapter 6 Questions...

Info iconThis 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. 10. Code a label named
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/27/2010 for the course CSCI 112 taught by Professor Dfg during the Spring '10 term at Community College of Denver.

Page1 / 6

CSCI212Week7Chapter6Questions - Week 7 Chapter 6 Questions...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online