Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!ucbvax!TCGOULD.TN.CORNELL.EDU!wilker From: wilker@TCGOULD.TN.CORNELL.EDU (Clarence W. Wilkerson Jr.) Newsgroups: comp.sys.m68k.pc Subject: Re: help cpm 68k Message-ID: <4607@batcomputer.tn.cornell.edu> Date: 29 Apr 88 05:29:46 GMT References: <4116@latcs1.oz> Sender: mwm@ucbvax.BERKELEY.EDU Organization: Theory Center, Cornell U., Ithaca NY Lines: 17 Keywords: Fn nos, calling conventions Summary: if this is like cpm-80/86 Approved: info-68k@ucbvax.berkeley.edu In article <4116@latcs1.oz>, ray@latcs1.OZ.AU (Douglas Ray) writes: > > > A group of us have been asked to write an emulator for the 68000. It requires > minimal character/string io, and for the sake of standardisation we were asked > to use CP/M 68k calling conventions. Anyone got any CP/M 68k documentation? > -douglas ray (ray@latcs1.oz) (LaTrobe CompSci) There are calls #9 (print a string terminated by $) and 10 ( read into a buffer. The first byte is max length of input string, the second is actual length, followed by characters input. A ^J or ^M terminates the input ( bu t I think is not stored in the string.) However, I don't know how parameters are passed in CPM-68k. As near as I can tell from looking a a Dr. Dobbs article on a 8080 emulator under CPM68k, one loads long addresses into d1, and the function number into d0, and then calls bdos (listed as $4e42 )