hi everyone,.Im new in Assembly language.I ask if you can teach me on how to convert the following c++ program to tasm. I hope you could help me with these.

#include <iostream.h>
#include <conio.h>
int main()
{
clrscr();
int n;
cout<<"enter number: ";
cin>>n;
    if(n==50)
        cout<<"n is 50";
    else
        cout<<"n is not 50";
return 0;
}


#include <iostream.h>
#include <conio.h>
int main()
{
clrscr();
   for(int n=15; n>0; n--)
       { 
         cout<<n<<," '";
        }
        cout<<"BANG!\n";
        return 0;
}

There are two ways of doing it, #1: Trace through the program with whichever debugger your using, #2: Emit a listing file from your compiler shows assembly with source

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.