💾 Archived View for mirrors.apple2.org.za › archive › apple.cabi.net › Z80.CPM › A2.CPM.files › pcpi… captured on 2023-03-20 at 23:40:33.
⬅️ Previous capture (2023-01-29)
-=-=-=-=-=-=-
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.