🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #2209

Lattice 5.04 bug

#2209
From: Valentin Pepelea
Date: Sat, 18 Nov 1989 09:00
28 lines
1379 bytes
/*
 * 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 <exec/types.h>
#include <proto/exec.h>

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
Technical Details
Message-ID: <8629@cbmvax.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!cbmvax!valentin

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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