EasyManua.ls Logo

Commodore Amiga A500 - Page 159

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...
struct MemReadWrite
[
UWORD mnu_Command;/*
see
below for
list
of commands
*/
UWORD m~Count;
/*
number of bytes to transfer
*/
ULONG mmAddress;
/*
local address
to
access. This is
*/
/*
a machine pointer for the
*/
/*
68000,
and a segmenttoffset
*/
/*
pair for the 808X. The ad-
*/
/*
dressed
is
arranged so the
*/
/*
native processor may read
it
*/
/*
directly.
*l
UWORD m~Buffer;
/*Theoffsetinbuffermemoryfor*/
l*
the other buffer.
*/
UWORD mm-Status;
/*
See below for status.
*/
l;
/*
command definitions
*/
#define MRWC-NOP
0
/*
do nothing
-
return OK
status code
*/
#define MRWC-READ
1
/*
xfer from address
to
buffer
*l
#define MRWC-WRITE
2
/*
xfer from buffer
to
address
*/
#define MRWC-READIO
3
/*
only on 808x
-
read from
10
space
*/
#define MRWC-WRITE10
4
/*
only on 808x
-
write to
10
space
*/
#define MRWC-WRITEREAD
5
/*
write from buffer, then read
back
*/
/*
status definitions
*/
#define MRWS-INPROGRESS$ffff
/*
we've noticed cmd and are
working on
it
*/
#define MRWS-OK
$0000/*
command completed OK
*l
#define MRWSACCESSERR
$0001
/*
some sort of protechon
violation
*/
#define MRWS-BADCMD
$0002/*
command that the server
doesn't understand
*/
services.h-define common service numbers between ibm-pc
and amiga
Copyright
O
1986.
Commodore-Amiga Inc.. All rights reserved
#ifndef JANUS-SERVICES-H
#define JANUS-SERVICES-H
/**/
/*
this
is
the table of hard coded services. Other services may exist
l*
that are dynamically allocated.
/**/

Related product manuals