At 10:55 AM 6/12/00 -0400, you wrote:
[snip]
// copy binary image to the emulator memory
for (i = 0; i <= iLength; i++)
Mem[i+addr] = (uchar) *pstrBuffer+i;
return 0;
This is the important code. The Altair's memory is represented by an array
of type uchar and pstrBuffer is the file buffer used int he fread command.
My question is whether I'm doing the assignment right?
Hi Rich,
A possibly faster way to implement this loop is:
memcpy(Mem + addr, pstrBuffer, iLength);
return(0);
Regards,
Bob