pg 227 9.1 1. mov al,11010110 and al,01111000 ;al = 01010000 mov al,11010110 or al,01111000 ;al = 11111110 mov al,11010110 xor al,01111000 ;al = 10101110 mov al,11010110 not al ;al = 00101001 mov al,0C9 and al,1E ;al = 8h mov al,0C9 and al,15 ;al = 9h mov al,0C9 or al,1E ;al = DFh mov al,0C9 xor al,1E ;al = D7h mov al,0C9 not al ;al = 36 2. and SomeBits,1111110000011111 ;set bits 5-9 to 0 or SomeBits,0000001111100000 ;set bits 5-9 to 1 and SomeBits,1111110000011111 ;set bits 5-9 to 1101 or SomeBits,0000001100100000 xor SomeBits,00001000000000000 ;toggle bit 12 check SomeBits,0000000000001000 ;if bit 3 is not zero, jump to ItsOn jnz ItsOn pg.233 1. mov cl,3 mov al,11010110 sh1 al,1 al = 10101100 ;shift left, add 0s mov al,11010110 shr al,1 al = 01101011 ;shift right, add 0s mov al,11010110 shl al,cl al = 10110000 mov al,11010110 shr al,cl al = 00011010 mov al,11010110 sal al,1 al = 10101100 ;sal = shl mov al,11010110 sar al,1 al = 11101011 ;shift right, add sign bit mov al,11010110 sal al,cl al = 10110000 mov al,11010110 sar al,cl al = 11111010 mov al,11010110 rol al,1 al = 1010110 ;shift left, add number of end digits specified mov al,11010110 ror al,1 al = 01101011 ;shift right, add number of end digits specified mov al,11010110 rol al,cl al = 10110110 mov al,11010110 ror al,cl al = 11011010 mov al,3Ch shr al,1 al = 1E mov al,24 shl al,1 al = 48 mov al,24 shr al,1 al = 12 mov al,99h rol al,1 al = 33h pg. 196 1. mov ax,1234h xchg ah,al al = 3412 mov ax,1234 mov bx,5678 xchg ax,bx ax = 5678 bx = 1234 mov ax,1234 mov bx,5678 xchg ah,bl ax = 7834 bx = 5612 mov ax,1111h mov bx,2222h mov cx,3333h xchg ax,bx xchg ax,cx ax = 3333h bx = 1111h cx = 2222h 2. a. mov dx,ax mov ax,bx mov bx,dx b. push ax push bx pop ax pop bx c. ?