Altair emulator code & C pointers

From: Erik Brens <ebrens_at_dds.nl>
Date: Mon Jun 12 11:10:16 2000

On Mon, Jun 12, 2000 at 11:18:58AM -0400, Bill Sudbrink wrote:
> things converting signed to unsigned values. Try this instead:
>
> Mem[i+addr] = *((uchar *)(pstrBuffer+i));
>
> or even:
>
> Mem[i+addr] = ((uchar *)pstrBuffer)[i];

This is not correct, the pstrBuffer element you are referring to is not a
pointer but an uchar.

The correct line should be:

        Mem[addr+i] = (uchar) *(pstrBuffer+i);

Good luck,
                Erik.
Received on Mon Jun 12 2000 - 11:10:16 BST

This archive was generated by hypermail 2.3.0 : Fri Oct 10 2014 - 23:33:01 BST