home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 8
/
FreshFishVol8-CD2.bin
/
bbs
/
dev
/
oberon-a-1.4ß.lha
/
Oberon-A
/
source
/
amiga
/
Potgo.mod
< prev
next >
Wrap
Text File
|
1994-08-08
|
2KB
|
83 lines
(**************************************************************************
$RCSfile: Potgo.mod $
Description: Interface to potgo.resource
Created by: fjc (Frank Copeland)
$Revision: 3.2 $
$Author: fjc $
$Date: 1994/08/08 00:44:55 $
$VER: potgo.h 36.0 (13.4.90)
$VER: potgo_protos.h 36.3 (7.11.90)
Includes Release 40.15
(C) Copyright 1985-1993 Commodore-Amiga, Inc.
All Rights Reserved
Oberon-A interface Copyright © 1994, Frank Copeland.
This file is part of the Oberon-A Interface.
See Oberon-A.doc for conditions of use and distribution.
***************************************************************************)
MODULE Potgo;
(*
** $C- CaseChk $I- IndexChk $L+ LongAdr $N- NilChk
** $P- PortableCode $R- RangeChk $S- StackChk $T- TypeChk
** $V- OvflChk $Z- ZeroVars
*)
IMPORT E := Exec;
CONST
name * = "potgo.resource";
(*-- Resource Base variable --------------------------------------------*)
TYPE
PotgoBasePtr * = CPOINTER TO PotgoBase;
PotgoBase * = RECORD END;
VAR
base * : PotgoBasePtr;
(*-- Resource Functions ------------------------------------------------*)
LIBCALL (base : PotgoBasePtr) AllocPotBits*
( bits [0] : E.WSET ) : E.WSET;
-6;
LIBCALL (base : PotgoBasePtr) FreePotBits*
( bits [0] : E.WSET );
-12;
LIBCALL (base : PotgoBasePtr) WritePotgo*
( word [0] : E.WSET;
mask [1] : E.WSET );
-18;
(*-- Resource Base variable --------------------------------------------*)
(* $L- Address globals through A4 *)
(*-----------------------------------*)
PROCEDURE OpenResource * ();
BEGIN (* OpenResource *)
IF base = NIL THEN
base := E.base.OpenResource (name);
IF base = NIL THEN HALT (100) END;
END;
END OpenResource;
END Potgo.