This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: poke function ....



>Is there anybody M68K programmer know any C function to replace
>pokeb, peekb function in M68K??

You don't need to write 68k assembler for peekb/pokeb. Since the 68k
doesn't use such a brain damaged segmentation model of the x86, it is
simple to access memory in the linear address space:

void pokeb(char *ptr, char value)
{
	*ptr = value;
}

char peekb(char *ptr)
{
	return(*ptr);
}