1File: BIOSDEF.H Page 1 1 2 /******************************************************** 3 * * 4 * BIOS definitions for CP/M-68K * 5 * * 6 * Copyright (c) 1982 Digital Research, Inc. * 7 * * 8 * This include file simply defines the BIOS calls * 9 * * 10 ********************************************************/ 11 12 EXTERN UBYTE bios1(); /* used for character I/O functions */ 13 EXTERN bios2(); /* parm1 is word, no return value */ 14 EXTERN bios3(); /* used for set dma only */ 15 /* parm1 is a pointer, no return */ 16 EXTERN UBYTE *bios4(); /* seldsk only, parm1 and parm2 are */ 17 /* words, returns a pointer to dph */ 18 EXTERN UWORD bios5(); /* for sectran and set exception */ 19 EXTERN BYTE *bios6(); /* for get memory segment table */ 20 21 22 #define bwboot() bios1(1) /* warm boot */ 23 #define bconstat() bios1(2) /* console status */ 24 #define bconin() bios1(3) /* console input */ 25 #define bconout(parm) bios2(4,parm) /* console output parm */ 26 #define blstout(parm) bios2(5,parm) /* list device output */ 27 #define bpun(parm) bios2(6,parm) /* punch char output */ 28 #define brdr() bios1(7) /* reader input */ 29 #define bhome() bios1(8) /* recalibrate drive */ 30 #define bseldsk(parm1,parm2) bios4(9,parm1,parm2) 31 /* select disk and return info */ 32 #define bsettrk(parm) bios2(10,parm) /* set track on disk */ 33 #define bsetsec(parm) bios2(11,parm) /* set sector for disk */ 34 #define bsetdma(parm) bios3(12,parm) /* set dma address */ 35 #define bread() bios1(13) /* read sector from disk */ 36 #define bwrite(parm) bios2(14,parm) /* write sector to disk */ 37 #define blistst() bios1(15) /* list device status */ 38 #define bsectrn(parm1,parm2) bios5(16,parm1,parm2) 39 /* sector translate */ 40 #define bgetseg() bios6(18) /* get memory segment tbl */ 41 #define bgetiob() bios1(19) /* get I/O byte */ 42 #define bsetiob(parm) bios2(20,parm) /* set I/O byte */ 43 #define bflush() bios1(21) /* flush buffers */ 44 #define bsetvec(parm1,parm2) bios5(22,parm1,parm2) 45 /* set exception vector */ 46