diff code_part1/OSTC_code_asm_part1/menu_settime.asm @ 123:6a94f96e9cea

The big cleanup, again.
author JeanDo
date Thu, 30 Dec 2010 23:45:20 +0100
parents 263348f83485
children f5e9db793dd3
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/menu_settime.asm	Tue Dec 28 15:28:55 2010 +0100
+++ b/code_part1/OSTC_code_asm_part1/menu_settime.asm	Thu Dec 30 23:45:20 2010 +0100
@@ -85,15 +85,10 @@
 	lfsr	FSR2,letter
 	movff	hours,lo
 	output_99x
-	movlw	':'
-	movwf	POSTINC2
+	PUTC	':'
 	movff	mins,lo
 	output_99x
-	movlw	' '
-	movwf	POSTINC2
-	movlw	' '
-	movwf	POSTINC2
-	call	word_processor
+	STRCAT_PRINT "  "
 
 set_date_refresh:
 	WIN_LEFT	.70
@@ -103,13 +98,8 @@
 	movff	day,convert_value_temp+1
 	movff	year,convert_value_temp+2
 	call	PLED_convert_date		; converts into "DD/MM/YY" or "MM/DD/YY" or "YY/MM/DD" in postinc2
-	movlw	' '
-	movwf	POSTINC2
-	movlw	' '
-	movwf	POSTINC2
-	call	word_processor
-	return
-
+	STRCAT_PRINT "  "
+    return
 
 set_time_done:				; Check date
 	movff	month,lo		; new month
@@ -166,17 +156,13 @@
 	lfsr	FSR2,letter
 	movff	hours,lo
 	output_99x
-	movlw	':'
-	movwf	POSTINC2
+	PUTC	':'
 	movff	mins,lo
 	output_99x
-	movlw	':'
-	movwf	POSTINC2
+	PUTC	':'
 	movff	secs,lo
 	output_99x
-	movlw	' '
-	movwf	POSTINC2
-	call	word_processor
+	STRCAT_PRINT " "
 
 	decfsz	wait_temp,F
 	bra	set_time_done_loop
@@ -203,6 +189,7 @@
 	
 	WIN_LEFT	.32
 	WIN_TOP		.155
+    call    PLED_standard_color    
 	lfsr	FSR2,letter
 	OUTPUTTEXT	.94			; Set