Bon, ça avance, mais visiblement, j'arrive même pas à initialiser les niveaux de gris
Voici mon code :
void *PlanesHdPtr,*PlanesPtr; //ptr to the handle and to the planes
if(!(PlanesHdPtr = HeapAllocPtr(LCD_SIZE*4+8))) //try to alloc planes to save work
{
ST_helpMsg("Not enough RAM to run GrayTool"); //else display a message,
ngetchx(); //wait for a key,
return; //and quit
}
PlanesPtr = ((void *)((long)(PlanesHdPtr + 7) & ~7L)); //8x alignment for HW1
memset(PlanesPtr,0,LCD_SIZE*4); //clear planes
GribOn(PlanesPtr,PlanesPtr+LCD_SIZE); //and set up grays
et le prototype de GribOn :
void GribOn(void *plane0 asm("%d0"),void *plane1 asm("%d1"));
Keskyakivapa ? GribOnAllocPlanes marche si je vire l'appel à GribOn, le code de Grib est donc bon (il appelle GribOn en interne).