#include <stdio.h>
#include <math.h>
#include <string.h>
#define N 100
void exit();
int main()
{
int n,n1,n2,bin[100],i,j;
printf("Enter Decimal: \t\t");
scanf("%d",&n);
n=n;
n1=n;
n2=n;
printf("\nEquivalent Binary:\t",n);
for(i=0;n!=0;i++)
{
bin[i]=n%2;
n=n/2;
}
for(j=i-1;j>=0;j--)
{
printf("%d",bin[j]);
}
printf("\nEquivalent Octal:\t",n1);
int r[10];
for(i=0;n1!=0;i++)
{
r[i]=n1%8;
n1=n1/8;
}
i--;
for(;i>=0;i--)
{
printf("%d",r[i]);
}
printf("\nEquivalent Hex: \t",n2);
for(i=0;n2!=0;i++)
{
r[i]=n2%16;
n2=n2/16;
}
i--;
for(;i>=0;i--)
{
if(r[i]==10)
printf("A");
else if(r[i]==11)
printf("B");
else if(r[i]==12)
printf("C");
else if(r[i]==13)
printf("D");
else if(r[i]==14)
printf("E");
else if(r[i]==15)
printf("F");
else
printf("%d",r[i]);
}
printf ("\n\nPress Any Key to Continue...\n");
getch();
exit (0);
return (0);
well, i have this .c code... and im trying to convert it to assembly... and i cant seem to figure out where to start... can you guys help me out...