; Edit version 1.01 ;************************************************************************** ;************************************************************************** ;*** *** ;*** Operating System Interface. *** ;*** *** ;************************************************************************** ;************************************************************************** ; ; File Name : CPM.Z80 ; Library Name : MUSICBOX.LBR ; Module Build File : MUSICBOX.ZEX ; Author : Edmund Cramp ; Creation Date : 28-Sep-1985 ; ; Assembler Name : Z80ASM (SLR Systems) ; Linker : SLRNKP (SLR Systems) ; ; Ammendment Record ; ***************** ; Name Date Details of Ammendment ; ---- ---- --------------------- ; Edmund Cramp 28-Sep-1985 Module created. ; Edmund Cramp 20-Dec-1985 FCB and IOBYTE added. ; Edmund Cramp 17-Apr-1987 Modified for ZAS/ZLINK. ; Edmund Cramp 19-Mar-1988 Modified for SLR assembler/linker. ; ; Module Function ; *************** ; This module provides the operating system interface addresses for ; subsequent system functions. They are placed in a seperate module and ; declared to be PUBLIC so that they may be used by any other module that ; referances them as EXTERNAL. ; Placing all Global equates in a seperate file is not required by ; the assembler or linker but is generally good programming practice and ; allows corrections, or additions, to be easily made to all files that ; referance these values. ; Note that while all relocating assembler/linkers will accept and ; relocate word values (16 bits), many will generate errors if byte values ; (8 bits) are referanced. ; ;************************************************************************** NAME CPM ; Object File Name ; =============== ; Global symbols. ; =============== PUBLIC BDOS,DEFDU,FCB,IOBYTE,RESTART ; =================== ; External Referances ; =================== ; n o n e ; ============== ; External Files ; ============== ; n o n e ; ============ ; Local Macros ; ============ ; n o n e ; ============= ; Local Equates ; ============= ; n o n e ;************************************************************************** ;*** Define addresses for operating system. *** ;************************************************************************** RESTART: EQU 0000H ; Warm start vector. IOBYTE: EQU 0003H ; I/O byte location. DEFDU: EQU 0004H ; Default drive and User number. BDOS: EQU 0005H ; CP/M BDOS vector. FCB: EQU 005CH ; File Control Block. END