Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!cbmvax!valentin From: valentin@cbmvax.UUCP (Valentin Pepelea) Newsgroups: comp.sys.amiga.tech Subject: Lattice 5.04 bug Message-ID: <8629@cbmvax.UUCP> Date: 18 Nov 89 09:00:32 GMT Reply-To: valentin@cbmvax.UUCP (Valentin Pepelea) Organization: Commodore Technology, West Chester, PA Lines: 28 /* * Another bug in the Lattice C compiler Saga. When using prototypes for * the Exec functions, the A6 register is not saved anymore upon entry * of a function which makes calls to exec. Nasty little bug if you call * a C function from assembler, when the assembler function itself keeps * something important in A6. * */ #include #include APTR Cia = NULL; /* Pointer to the allocated resource */ struct IOExtPar *PAR_request; /* The current active IO request */ void MD_Open(struct IOExtPar *request) { Cia = (APTR) OpenResource("ciaa.resource"); } ------------------------------cut here----------------------------------------- Valentin -- The Goddess of democracy? "The tyrants Name: Valentin Pepelea may distroy a statue, but they cannot Phone: (215) 431-9327 kill a god." UseNet: cbmvax!valentin@uunet.uu.net - Ancient Chinese Proverb Claimer: I not Commodore spokesman be