title: How does Subsystem for Unix Application on Windows implements System Calls in assembly?
body: <p>Such as this linux system call <code>int $0x80</code>.</p>
  
  <p>Does SUA implement something similar?
  If so, what are the commands?</p>
  
  <p>this particular code is the one I want to change to use on SUA</p>
  
  <pre><code>#cpuid.s Sample program to extract the processor Vendor ID
  .section .data
  output:
      .ascii "The processor Vendor ID is 'xxxxxxxxxxxxx'\n"
  .section .text
  .globl _start
  _start:
      movl $0, %eax
      cpuid
      movl $output, %edi
      movl %ebx, 28(%edi)
      movl %edx, 32(%edi)
      movl %ecx, 36(%edi)
      movl $4, %eax
      movl $1, %ebx
      movl $output, %ecx
      movl $42, %edx
      int $0x80
      movl $1, %eax
      movl $0, %ebx
      int $0x80
  </code></pre>