> if(stream == NULL)
> return NULL;
Are you sure that malloc() returned a valid pointer?
For debugging I would change this code into:
if (stream == NULL) {
P2 = 0xAA;
return NULL;
}
Or, as I know assembler, I would look into the machine code to check it does
The Right Thing(TM).
HTH, Bodo
------------------------------------------------------------------------------
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user