EasyManua.ls Logo

Commodore Amiga A500 - Page 151

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...
memrw.i-parameter area definition for access to other
processors mem
Copyright
0
1986, Commodore-Amiga Inc.,
All
rights reserved
IFND JANUS-MEMRW-I
JANUS-MEMRW-I SET
1
;
this is the parameter block for the JSERV-READPC and JSERV-
;
READAMIGA; services
-
read andtor write the other processors
;
memory.
STRUCTURE
MemReadWrite,O
UWORD mm-Command
;
see below for
list
of commands
UWORD
mwCount
;
number of bytes to transfer
ULONG
mnvAddress
;
local address to access. This
is
;
a machine pointer for the
68000,
and
;
a segmentlo~ pair for the
808x.
;
The address
is
arranged
so
the native
;
processor may read
it
directly.
UWORD
m~Buffer
;
The offset in buffer memory for the
;
other buffer.
UWORD mm-Status
;
See below for status.
LABEL
MemReadWrite-SIZEOF
;
Command definitions:
MRWC-NOP
EQU
0
;
do nothing
-
return OK status
code
MRWC-READ EQU
1
;
xfer from address to buffer
MRWC-WRITE EQU 2
;
xfer from buffer to address
MRWC-READIO EQU
3
;
only on 808x
-
read from
10
space
MRWC-WRITE10
EQU
4
;
only on 808x
-
write to
10
space
MRWC-WRITEREAD EQU
5
;
write from buffer, then read back
;
Status definitions:
MRWSINPRCGRESS EQU $ffff
;
we've noticed command and
are working on
it
MRWS-OK
EQU
$0000
;
completed OK
MRWSACCESSERR EQU
$0001
;
some sort of protection
violation
MRWSBADCMD EQU $0002
;
command that the server
doesn't understand
ENDC
l
FND JANUSSERVlCESl
JANUSSERVICE5I EQU 1

Related product manuals