63Fermer65
FarewellLe 15/04/2009 à 18:38
Ok. En fait, sur TI, on est assez confronté à ce genre de cas, on reste très près de la machine, même en C.

Sally -> Merci, je pourrai creuser tout ça quand j'aurai récupéré mon bouquin.
Le code est le suivant :
	if(!(PlanesHdPtr = HeapAllocPtr(LCD_SIZE*4+8)))						//try to alloc planes to save work
	{
		ST_helpMsg("Not enough RAM to run GrayTool");
		ngetchx();
		return;
	}
	PlanesPtr = ((void *)((long)(PlanesHdPtr + 7) & ~7));
	GribOn(PlanesPtr,PlanesPtr+LCD_SIZE);

Or HeapAllocPtr est de type void*, donc j'ai donné ce type à PlanesHdPtr et PlanesPtr. C'est peut-être pas une bonne idée ?