M6800 User Group Library

Entry #002

Programmer: N/A

Company: Motorola, Inc.

Program Title: EXBUG INCHP Subroutine (Input one character with no parity)

Function: Wait for and accept input of one character from the EXORciser console or reader device and echo character back if required. Clear the high order bit of input character. CALL: JSR INCHNP

Parameters: If EXBUG flag, AECHO = 0, the character will be echoed. If AECHO is set, the character will not be echoed.

Results: Accumulator A contains the input character with high order bit cleared. Accumulator B is saved.

Hardware Configuration: Motorola EXORciser

Memory Required: N/A

Software Support: EXBUG 1.1

Assembler/Compiler: N/A

LINE  ADDR OP OPER	LABEL	OPCODE	OPERAND/COMMENT
----- ---- -- ----	-----	------	-----------------------------------
00001		NAM	INCHNP
00002		NAM	CBCDHX Test Test
00003	; Generate S-Records - S0, S5, S1_Start, S1_End.
00004        		OPT	S19_START=$FA8B,S19_END=$FAA2
00005	; Generate Intel Hex file..
00006        		OPT	IHEX_START=$FA8B,IHEX_END=$FAA2
00007	;
00008      FCF4	MTTYSI	EQU	$FCF4	
00009      FCF5	MTTYDI	EQU	$FCF5	
00010      FF53	AECHO	EQU	$FF53	
00011      F9DC	OUTCH	EQU	$F9DC	
00012 FA8B		ORG	$FA8B	
00013	;      REV. 1.0 BY MOTOROLA MICROSYSTEMS MARCH 15, 1977
00014	;
00015	;      ALL REFERENCES TO ROUTINE VIA EXBUG SHOULD
00016	;      USE EXBUG'S JUMP VECTOR ENTRY AT $F015
00017	;
00018	;      INPUT ONE CHAR INTO A-REGISTER
00019 FA8B B6 FC F4	INCH	LDAA	MTTYSI	
00020 FA8E 47		ASRA		
00021 FA8F 24 FA		BCC	INCH	; RECEIVE NOT READY
00022 FA91 B6 FC F5		LDAA	MTTYDI	; INPUT CHAR
00023 FA94 7D FF 53		TST	AECHO	
00024 FA97 26 03		BNE	*+5	; NON-ECHO
00025 FA99 7E F9 DC		JMP	OUTCH	; ECHO CHARACTER
00026 FA9C 39		RTS		; NON-ECHO
00027	;      INPUT ONE CHAR - REMOVE PARITY
00028 FA9D 8D EC	INCHNP	BSR	INCH	
00029 FA9F 84 7F		ANDA	#$7F	
00030 FAA1 39		RTS		
00031		END	

Total Errors: 0

Symbol Table Sorted Alphabetically

Symbol - Value	Symbol - Value	Symbol - Value	
AECHO - $FF53	INCHNP - $FA9D	MTTYSI - $FCF4	
INCH - $FA8B	MTTYDI - $FCF5	OUTCH - $F9DC	

S-Records - Addresses $FA8B to $FAA2

S00600004844521B
S110FA8BB6FCF44724FAB6FCF57DFF5326037EF943
S107FA9BDC398DEC84073921
S5030002FA
S9030000FC

Intel Hex Records - Addresses $FA8B to $FAA2

:10FA8B00B6FCF44724FAB6FCF57DFF5326037EF94A
:07FA9B00DC398DEC84073912
:00000001FF