Index: /trunk/softs/tests_ccvcache_v4/common/misc.h
===================================================================
--- /trunk/softs/tests_ccvcache_v4/common/misc.h	(revision 269)
+++ /trunk/softs/tests_ccvcache_v4/common/misc.h	(revision 270)
@@ -30,4 +30,11 @@
 	nop
 
+#define PRINT_SYNC(str) \
+        la      a0, str;\
+	jal     print_sync; \
+	nop
+
+
+
 #define PRINTX \
 	jal     printx;\
Index: /trunk/softs/tests_ccvcache_v4/common/subr.S
===================================================================
--- /trunk/softs/tests_ccvcache_v4/common/subr.S	(revision 269)
+++ /trunk/softs/tests_ccvcache_v4/common/subr.S	(revision 270)
@@ -22,4 +22,26 @@
 	jr	ra
 	nop
+
+/*
+ * void print_sync(char *): print a string to the multitty with a sync instruction for each character.
+ * assumes k0 points to the tty base.
+ */
+	.globl print_sync
+print_sync:
+	.set noreorder
+	move	t0, a0
+1:
+	lb	t1, 0(t0);
+	beq	t1, zero, end_print_sync
+	nop
+	sb	t1, 0(k0)
+    sync
+	addiu	t0, t0, 1
+	j	1b
+	nop
+end_print_sync:
+	jr	ra
+	nop
+
 
 /*
