Download Print this page

Commodore Amiga A500 Technical Reference Manual page 159

Hide thumbs Also See for Amiga A500:

Advertisement

struct MemReadWrite
[
UWORD mnu_Command;/* see below for
list of commands
*/
UWORD m ~ C o u n t ;
/*
number of bytes t o 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 ~ B u f f e r ; /*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
1 0 space
*/
#define MRWC-WRITE10
4
/*
only on 808x
-
write t o
1 0
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.
/**/

Advertisement

loading

This manual is also suitable for:

Amiga a2000