How to convert this c++ code to assembly code ?
while(( A = getch()) != "0")
{
  switch(A){
    case "x":
     printf("x");
     break;
    case "w":
     printf("w");
    case "k":
     if(cx==0)
       continue;
     break;
     default: printf("error");
           }
} 
specially how to convert: getch() != "0";
 
     
    