comparison code_part1/OSTC_code_asm_part1/definitions.asm @ 522:e33a8ac4b660

New ASSERT_BANK1 macro for software proofing.
author JeanDo
date Fri, 09 Dec 2011 20:43:43 +0100
parents a73a452ca155
children d445f0627e86
comparison
equal deleted inserted replaced
521:33abbc08f01e 522:e33a8ac4b660
356 time_correction_value res 1 ; Adds to Seconds on midnight 356 time_correction_value res 1 ; Adds to Seconds on midnight
357 gaslist_active res 1 ; Holds flags for active gases 357 gaslist_active res 1 ; Holds flags for active gases
358 desaturation_time_buffer res 2 ; buffer for desat time 358 desaturation_time_buffer res 2 ; buffer for desat time
359 total_divetime_seconds res 2 ; counts dive seconds regardless of CF01 (18h max.) 359 total_divetime_seconds res 2 ; counts dive seconds regardless of CF01 (18h max.)
360 360
361 ASSERT_BANK1 MACRO tag
362 Ifdef __DEBUG
363 local @end
364 movlw 1
365 xorwf BSR,W
366 bz @end
367
368 movlw low(tag)
369 movff WREG,temp10+0
370 movlw high(tag)
371 movff WREG,temp10+0
372 call PLED_resetdebugger
373 @end:
374 Endif
375 ENDM
361 ;============================================================================= 376 ;=============================================================================
362 ; C-code Routines 377 ; C-code Routines
363 ; PART 2 378 ; PART 2
364 extern deco_calc_CNS_decrease_15min 379 extern deco_calc_CNS_decrease_15min
365 extern deco_calc_CNS_fraction 380 extern deco_calc_CNS_fraction