EasyManua.ls Logo

Commodore Amiga A500 - Page 145

Commodore Amiga A500
283 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
janus.i
-
software conventions for janus.i
Copyright
0
1986,
Commodore-Amiga Inc., All rights reserved
IFND EXEC-TY PES-I
INCLUDE "exec/types.i"
EN DC EXEC-TY PES-I
l
FN
D
EXEC-LIBRARIES-I
INCLUDE "exec1libraries.i"
ENDC EXEC-LIBRARIES-I
IFND EXEC-INTERRUPTS-I
INCLUDE "exec/interrupts.i"
ENDC EXEC-INTERRUPTS-I
;
JanusResource
-
an entity which keeps track of the reset state of
the
8088.
If this resource does not exist, it is assumed the
8088
can
be reset.
STRUCTURE JanusResource,LN-SIZE
APTR jr-BoardAddress
;
address of JANUS board
UBYTE
jr-Reset
;
non-zero indicates
8088
is held reset
LABEL
JanusResource-SIZEOF
;
As a coding convenience, we assume a maximum of 32 handlers.
;
People should avoid using this in their code, because we want to
;
be able to relax this constraint in the future. All the standard
;
commands' syntactically support any number of interrupts, but
;
the internals are limited to 32.
MAXHANDLER EQU 32
;
JanusAmiga
-
amiga specific data structures forjanus project:
STRUCTURE JanusAmiga,LIB-SIZE
ULONG ja-IntReq
;
software copy of out-
standing requests
ULONG
jalntEna
;
software copy of enabled
interrupts
APTR
ja-ParamMem
;
ptr to (word arranged)
param mem
APTR
ja-IoBase
;
ptr to base of io register
region
APTR
jaExpanBase
;
ptr to start of shared
memory
APTR
ja-ExecBase
;
ptr to exec library
APTR
ja-DOSBase
;
ptr to DOS library
APTR
ja-Seg List
;
holds a pointer to our
code segment

Related product manuals