title: purpose of 'and' in assembly
body: <p>Can someone define me the exact purpose of the <code>and</code> keyword in assembly? I have provided a code here can someone explain me what the <code>and</code> does in this code? By the way the <code>and</code> is located somewhere under <code>begin</code> just for you to locate it easily.</p>
  
  <pre><code>code segment
  assume cs:code;ds:code
  org 100h
  
  begin:
  
  mov ah, 09
  mov dx, offset msg1
  int 21h
  
  mov ah,01h ;ask user
  int 21h
  and al,01h
  jz EVENn
  mov ah, 09 ;display string
  mov dx, offset oddmsg
  int 21h
  jmp ENDd
  
  EVENn:
  
  mov ah, 09 ;display string
  mov dx, offset evenmsg
  int 21h
  
  ENDd:
  int 20h
  
  msg1:db 'enter a number: $'
  evenmsg:db 0ah,0dh, 'EVEN $'
  oddmsg:db 0ah,0dh, 'ODD$'
  
  code ends
  end begin
  </code></pre>