; -----------------------------------------------
; PShell - a runtime environment for    
; sharp pocket computers                 
; file     : serial.asm                   
; author   : puehringer edgar           
; date     : 09.05.2005                 
; version  : 1.0.0                      
; assembler: as61860                    
;                                       
; All serial interface related funtions for 
; pshell. If serial interface functions for
; a specific modell had not been implemented
; yet, input functions wait forever (or for
; the break key) and output functions return
; imidiatly without doing anything 
; -----------------------------------------------

.area pshell (REL)
        
.include "pshell.h"
.include "internal.h"


; -----------------------------------------------
; Writes a character in A to the serial port
; -----------------------------------------------
ps_putchar_aux::
	RTN


; -----------------------------------------------
; Read a character from the serial port 
; (blocking)
; Return value: A
; -----------------------------------------------
ps_getchar_aux::
	TEST 8			; check for BREAK key
	JPNZ ps_break
	JRM ps_getchar_aux
	
