comparison code_part1/OSTC_code_asm_part1/divemode.asm @ 486:c7b663939737

making waitms speed-independent, desat-time fix
author heinrichsweikamp
date Sat, 15 Oct 2011 15:03:53 +0200
parents d300e6ad6f66
children 19b9e19ea4da
comparison
equal deleted inserted replaced
485:e83f883c96b2 486:c7b663939737
1119 ostc_debug 'G' ; Sends debug-information to screen if debugmode active 1119 ostc_debug 'G' ; Sends debug-information to screen if debugmode active
1120 call deco_calc_desaturation_time ; calculate desaturation time 1120 call deco_calc_desaturation_time ; calculate desaturation time
1121 movlb b'00000001' ; select ram bank 1 1121 movlb b'00000001' ; select ram bank 1
1122 call calc_deko_surfmode2 ; work-around for nofly bug 1122 call calc_deko_surfmode2 ; work-around for nofly bug
1123 rcall calculate_noflytime ; Calc NoFly time 1123 rcall calculate_noflytime ; Calc NoFly time
1124 movff int_O_desaturation_time+0,desaturation_time_buffer+0
1125 movff int_O_desaturation_time+1,desaturation_time_buffer+1
1124 ostc_debug 'H' ; Sends debug-information to screen if debugmode active 1126 ostc_debug 'H' ; Sends debug-information to screen if debugmode active
1125 ; store header and ... 1127 ; store header and ...
1126 movlw 0xFD ; .... End-of-Profile Bytes 1128 movlw 0xFD ; .... End-of-Profile Bytes
1127 call write_external_eeprom 1129 call write_external_eeprom
1128 movlw 0xFD 1130 movlw 0xFD