

; ----------------=TEST DEBUG SUBROUTINE =-------------------
; currently this code does nothing. in the final version,
; however, we may wish to use it to test the entire 6812
; board rather than having a special "test" ROM. This way
; the test code may be able to tell whats wrong and the 
; student can attempt to debug using the other subs.
; -----------------------------------------------------------
***
;test_sub: "m_debug.asm"
;	Useless right now.
;	Reg Input:
;		None
;	Reg Output:
;		None
***


test_sub:
	jsr		parse_address		; parse_address is defined in: "util.asm"
	cmpb		#$ff			; look for error!




	beq		test_error		
	jsr		print_address		; test parse_address and print it
	rts
test_error:
	ldy		#error_msg		; loads the pointer to the error_message string
	jsr		print_string		; prints a null terminated string. see "serial.asm"
	rts
