title: Assembly 16h BIOS call not working
body: <pre><code>char getchar() {
      char a;
      __asm {
              int 16h
              mov [a], AL
      }
      return a;
  }
  </code></pre>
  
  <p>I tried to get user input from the keyboard but instead of waiting for keypress, it returns wierd characters without pressing any key on the keyboard.</p>