home *** CD-ROM | disk | FTP | other *** search
/ Oakland CPM Archive / oakcpm.iso / cpm / apple / pcpi.doc < prev    next >
Internet Message Format  |  1985-04-19  |  815b

  1. Date: Monday, 15 April 1985
  2. From: ir320%sdcc6 at SDCSVAX.ARPA
  3. Re:   New file PCPI.MAC
  4.  
  5. Just because I ask for pcpi code so much I thought it would be nice to
  6. send this out.  I have written a small piece of code for any computer
  7. to use the pcpi card to read/write a byte of apple memory.
  8.  
  9. Doc: 
  10.  
  11. Parms should be placed on stack in reverse order:
  12. Peek mem: <addr> [2 bytes] : Address of memory to peek
  13. Poke mem: <addr> <data> [2 bytes Ignore hi in data] : Poke <addr> with <data>
  14. Call <routine addr>+2 to peek mem
  15. Call <routine addr> to poke mem.
  16.  
  17. Turbo pascal code (if pcpi.mac resides at $1d76 for example):
  18.  
  19. Procedure Poke(addr, data:integer); external  $1d78;
  20. Function Peek(addr: integer): integer; external $1d76;
  21.  
  22. PCPI.MAC is the module for PCPI work.  It is for use in Turbo pascal.
  23. That's all there is to it.
  24.