;
;	CUSTOM MOV-BIOS SKELETON FOR MOVE-IT   (11/15/82)
;
;
;		WRITTEN BY:     JEFF WOOLF
;				WOOLF SOFTWARE SYSTEMS
;				23842 ARCHWOOD ST.
;				CANOGA PARK, CA 91307
	PUT	100H
	ORG	100H

BIOS:	EQU	$		;THIS IS THE USER'S BIOS!!!
START:	JMP	0302H		;THE WAY TO THE PROGRAM
	NOP
	DW	48000H		;END OF USER SECTION
	JMP	INITI		;COMLINE INIT.
	JMP	FINISH		;COMLINE DE-INIT.
	JMP	INSTA		;COMLINE STATUS
	JMP	INDAT		;COMLINE DATA INPUT
	JMP	OUTSTA		;COMLINE OUTPUT STATUS
	JMP	OUTDAT		;COMLINE OUTPUT DATA
	NOP
	DW	CNFGMS		;POINT TO THE CONFIGURATION MESSAGE
	JMP	DIAL		;AUTO-DIAL CODE

;	THE CONFIG MESSAGE IS 80 CHARACTERS LONG, PLUS A CR AND TWO LFS
CNFGMS:	
	DB	'               INSERT A MESSAGE THAT DESCRIBES '
	DB	'YOUR MACHINE HERE               '
	DB	0DH,0AH,0AH,'$'


INITI:				;INIT. COMLINE (NO ENTRY,EXIT PARMS)

; ----- ANY CODE THE SYSTEM NEEDS TO INITIALIZE THE COMLINE -----
; -----                SHOULD BE ADDED HERE                 -----

	RET


FINISH:			;DE-INIT. COMLINE (NO ENTRY,EXIT PARMS)

; ----- ANY CODE THE SYSTEM NEEDS TO UN -- INITIALIZE THE COMLINE -----
; -----                   SHOULD BE ADDED HERE                    -----

	RET

INSTA:			;INPUT STATUS (AL=FF IF CHAR READY,0 IF NOT)

;	ADD A ROUTINE TO READ THE STATUS OF THE INPUT PORT HERE
;	USE ANY REGISTERS YOU LIKE, AND UPON EXIT, SET THE AL REG
;	TO 0FFH IF A CHARACTER IS WAITING, OR TO 0 IF NOT

	RET

INDAT:			;INPUT DATA (EXIT W/ CHARS. IN AL REG)

;	ADD A ROUTINE TO GET THE DATA AT THE INPUT PORT HERE
;	RETURN THE CARACTER IN THE AL REGISTER (DO NOT CHANGE THE 
;	CHARACTER IN ANY WAY!

	RET

OUTSTA:			;OUTPUT STATUS (AL=FF IF RDY FOR CHAR, 0 IF NOT)

;	ADD A ROUTINE TO READ THE STATUS OF THE OUTPUT PORT HERE.
;	USE ANY REGISTERS YOU LIKE, AND, UPON EXIT, SET THE AL REG
;	TO 0FFH IF THE DATA PORT IS READY TO SEND DATA, OR TO 0 IF
;	NOT.

	RET

OUTDAT:			;OUTPUT DATA (CHAR IN AL ON ENTRY)

;	ADD A ROUTINE TO OUTPUT THE CHARACTER IN THE AL REGISTER TO
;	THE DATA PORT.

	RET

	PUT	200H
	ORG	200H

;
;	DIAL A NUMBER/HANG UP PHONE
;	  FOR DIALING, CH=0 AND BX=THE STRING POINTER
;
;	  FOR HANGING UP, THEN CH=1
;	  FOR AUTO ANSWER, CH=2
DIAL:
	RET

	END
