title: x86 Assembly Language - Terminate Program
body: <p>I am sure this is very trivial for most, but I am not very familiar with x86 assembly language. I am just trying to teach myself.</p>
  
  <p>I am in windows. And everywhere I read, I was told to use <code>INT 21</code> to return to the operating system. Which this exits the program, but I get an error saying <code>Unhandled exception at 0x003d1313 in Assignment1.exe: 0xC0000005: Access violation reading location 0xffffffff</code>.</p>
  
  <p>Thanks!</p>