I am building a disassembler in C68 (its for fun, don't judge.) I want to use the itoa function to convert a decimal address into hex.
I am using code based on this -
Code: Select all
int main()
{
int i = 0;
long ad;
char buff[7];
ad = 43981;
itoa(ad,buff,16);
printf("buff = %s\n", buff);
return 0;
}
Does anyone know of the syntax of the C68 itoa function? I'm a bit stumped at the moment.
Whopper