


*** SAMPLE SUBROUTINE ADDED TO MONITOR



*** this string, if it is going to be commonly used, should be put in messages.asm
sample_string	dc.b		"sample command output",13,10,0

sample_sub:
		pshy					; stores contents of y
		ldy		#sample_string		; loads pointer to the sample_string above into y
		jsr		print_string		; calls the print_string subroutine. see "serial.asm"
		puly					; restores contents of y
		rts					; returns from this subroutine

