home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Oakland CPM Archive
/
oakcpm.iso
/
cpm
/
apple
/
pcpi.doc
< prev
next >
Wrap
Internet Message Format
|
1985-04-19
|
815b
Date: Monday, 15 April 1985
From: ir320%sdcc6 at SDCSVAX.ARPA
Re: New file PCPI.MAC
Just because I ask for pcpi code so much I thought it would be nice to
send this out. I have written a small piece of code for any computer
to use the pcpi card to read/write a byte of apple memory.
Doc:
Parms should be placed on stack in reverse order:
Peek mem: <addr> [2 bytes] : Address of memory to peek
Poke mem: <addr> <data> [2 bytes Ignore hi in data] : Poke <addr> with <data>
Call <routine addr>+2 to peek mem
Call <routine addr> to poke mem.
Turbo pascal code (if pcpi.mac resides at $1d76 for example):
Procedure Poke(addr, data:integer); external $1d78;
Function Peek(addr: integer): integer; external $1d76;
PCPI.MAC is the module for PCPI work. It is for use in Turbo pascal.
That's all there is to it.