diff code_part1/OSTC_code_asm_part1/math.asm @ 544:56da3e962e98

show start of dive in internal logbook (for dives made with logbook version 0x21 or later)
author heinrichsweikamp
date Sat, 14 Jan 2012 22:06:28 +0100
parents 7779bfa89171
children 44e9b961f156
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/math.asm	Tue Jan 10 21:55:13 2012 +0100
+++ b/code_part1/OSTC_code_asm_part1/math.asm	Sat Jan 14 22:06:28 2012 +0100
@@ -44,8 +44,7 @@
 	bra		div16
 	return
 
-sub16:
-;  sub_c = sub_a - sub_b (with signed values)
+sub16:	;  sub_c = sub_a - sub_b (with signed values)
 	bcf		neg_flag
 	movf   	sub_b+0, W             	; Get Value to be subtracted
 	subwf  	sub_a+0, W             	; Do the High Byte
@@ -66,8 +65,7 @@
 
     return        
 
-subU16:
-;  sub_c = sub_a - sub_b (with UNSIGNED values)
+subU16:	;  sub_c = sub_a - sub_b (with UNSIGNED values)
 	bcf		neg_flag
 	movf   	sub_b+0, W             	; Get Value to be subtracted
 	subwf  	sub_a+0, W             	; Do the High Byte