Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/divemode.asm @ 68:d0b677e1e9a5
new decoplan (GF mode) debuged
author | heinrichsweikamp |
---|---|
date | Wed, 13 Oct 2010 13:02:20 +0200 |
parents | e8756eba54ee |
children | df2d3b28947f |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/divemode.asm Tue Oct 12 21:18:47 2010 +0200 +++ b/code_part1/OSTC_code_asm_part1/divemode.asm Wed Oct 13 13:02:20 2010 +0200 @@ -450,7 +450,17 @@ movff char_O_deco_status,deco_status ; tstfsz deco_status ; deco_status=0 if decompression calculation done return ; calculation not yet finished! - + + ;copy gf_decolist (0x250:.32) to gf_decolist_copy (0x0E0:.32) + lfsr FSR0,0x250 ; Source + lfsr FSR1,0x0E0 ; Target + movlw d'32' + movwf wait_temp ; Counter +copy_gf_deco_list: + movff POSTINC0,POSTINC1 ; Copy Source to Target + decfsz wait_temp,F ; All done? + bra copy_gf_deco_list ; No, continue! + movff char_O_array_decodepth+0,wait_temp ; copy ceiling to temp register tstfsz wait_temp ; Ceiling<0m? bra calc_deko_divemode3 ; Yes!