#include "stdafx.h"
#include <iostream>
#include <windows.h>
using namespace std;
int main() {
 int sitution =0;
  cout<<"SECURITY SYSTEM"<<endl;
  cout<<"1. Police"<<endl;
  cout<<"2. Fire Brigade "<<endl;
  cout<<"4. Earthquake "<<endl;
 top:
  cout<<endl; cout<<endl;
 cout<<"Press The Button for Help \n ";
 cin>>sitution;
 if (sitution ==1)
 {
  for (int i =0; i <10;i++)
 {  
 Beep(1000,400);
 cout<<" Plz Help Us \t  ";
 }

  goto top;
  }
    if (sitution ==2)
{
  for (int i =0; i <10;i++)
  {
 Beep(1000,1400);
 cout<<" Fire ! Leave up \t ";  
 }
 goto top;
 }
 if (sitution ==3)
 { for (int i =0; i <10;i++)
 {
 Beep(1000,3000);
 cout<<"Earthquake Aftershocks \t ";    
 }}
 system ("pause");
 return 0;
}

kindly convert this c++ code into assembly emu 8086

This looks like a project in Visual Studio 2017 or about that version. The easiest way to get the resulting assembler code is to view it in Visual Studio.

How? Google this: How to view the assembly behind the code using Visual C++?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.