view code_part1/OSTC_code_asm_part1/dive_nitrox.inc @ 192:c8816e4bc724

GF Model + Apply the Eric's Baker gradient formula. + Apply GF varying corrections for each compartiment. + B?hlmann 100/100 == Gradient factor 100/100. + Compute stop with gradient at current depth (not GF_low) + Add assert() on visual platform. + Overflow stop into the next bin at same depth. + debug last deco depth in range 3m..6m.
author JeanDo
date Fri, 11 Feb 2011 23:39:35 +0100
parents e0f29e20bd24
children 652e17b6267a
line wrap: on
line source

dive_nitrox_width    equ .78
dive_nitrox_height   equ .26
dive_nitrox_block:
    db  .39, .26
    db  .9, 0
    dw  0x0000 ; rgb=(0,0,0)
    dw  0x10c0 ; rgb=(19,25,6)
    dw  0x4303 ; rgb=(71,96,24)
    dw  0x74c4 ; rgb=(115,154,38)
    dw  0x8dc5 ; rgb=(138,185,46)
    dw  0x9e66 ; rgb=(153,204,51)
    dw  0x2181 ; rgb=(37,49,12)
    dw  0x5bc3 ; rgb=(90,120,29)
    dw  0x0860 ; rgb=(9,12,3)
;
    db  0xf0, 0x07, 0x59, 0x0f, 0x59, 0x0f, 0x59, 0x0f
    db  0x59, 0x0e, 0x20, 0x59, 0x20, 0x0b, 0x60, 0x30
    db  0x5b, 0x30, 0x60, 0x08, 0x20, 0x5f, 0x20, 0x06
    db  0x70, 0xf1, 0x51, 0x70, 0x04, 0x20, 0x52, 0x40
    db  0x3c, 0x40, 0x51, 0x20, 0x02, 0x10, 0x40, 0x52
    db  0x20, 0x0c, 0x20, 0x51, 0x40, 0x10, 0x01, 0x70
    db  0x53, 0x20, 0x04, 0x67, 0x70, 0x52, 0x70, 0x00
    db  0x10, 0x54, 0x30, 0x10, 0x03, 0x60, 0x30, 0x5a
    db  0x10, 0x20, 0x56, 0x70, 0x80, 0x03, 0x60, 0x30
    db  0x58, 0x20, 0x30, 0x57, 0x40, 0x20, 0x80, 0x03
    db  0x20, 0x40, 0x56, 0x30, 0x40, 0x59, 0x40, 0x20
    db  0x04, 0x20, 0x40, 0x54, 0x40, 0x5c, 0x40, 0x20
    db  0x03, 0x80, 0x30, 0x5a, 0x20, 0x0c, 0x20, 0x5a
    db  0x20, 0x0c, 0x20, 0xf4, 0x52, 0x70, 0x20, 0x40
    db  0xf1, 0x56, 0x60, 0x00, 0x30, 0xf1, 0x56, 0x60
    db  0x00, 0x30, 0xf1, 0x56, 0x60, 0x00, 0x30, 0xf1
    db  0x51, 0x20, 0x01, 0x20, 0x50, 0x60, 0x08, 0x20
    db  0x59, 0x20, 0x01, 0x20, 0x50, 0x60, 0x08, 0x20
    db  0x59, 0x20, 0x01, 0x20, 0x50, 0x60, 0x08, 0x20
    db  0xf7, 0x56, 0x20, 0x00, 0x20, 0xf1, 0x56, 0x20
    db  0x00, 0x20, 0xf1, 0x53, 0x20, 0x08, 0x80, 0x60
    db  0x30, 0x5c, 0x20, 0x0b, 0x30, 0x5b, 0x20, 0x0b
    db  0x60, 0x5e, 0x20, 0x00, 0x20, 0x53, 0x40, 0x60
    db  0x00, 0x60, 0x5e, 0x20, 0x00, 0x20, 0x54, 0x20
    db  0x00, 0x60, 0x5e, 0x20, 0x00, 0x20, 0x54, 0x20
    db  0x00, 0x60, 0x5e, 0x30, 0x20, 0x30, 0x54, 0x61
    db  0x70, 0xf4, 0x52, 0x39, 0x40, 0x5e, 0x60, 0x08
    db  0x20, 0x5e, 0x60, 0x08, 0x20, 0x5e, 0x70, 0x60
    db  0x01, 0x60, 0x24, 0x30, 0x5e, 0x30, 0x01, 0x20
    db  0xf1, 0x55, 0x60, 0x00, 0x10, 0xf1, 0x56, 0x01
    db  0x60, 0xf1, 0x56, 0x02, 0x60, 0xf1, 0x55, 0x80
    db  0x01, 0x60, 0xf3, 0x51, 0x30, 0x20, 0x62, 0x20
    db  0x40, 0xf1, 0x51, 0x20, 0x05, 0x80, 0x70, 0x5f
    db  0x30, 0x07, 0x80, 0x40, 0x5e, 0x60, 0x00, 0x80
    db  0x20, 0x32, 0x20, 0x01, 0x20, 0x5e, 0x01, 0x30
    db  0x54, 0x20, 0x00, 0x60, 0x5e, 0x01, 0x40, 0x54
    db  0x30, 0x00, 0x60, 0x5e, 0x01, 0x20, 0x53, 0x40
    db  0x60, 0x00, 0x60, 0x5e, 0x60, 0x01, 0x10, 0x60
    db  0x20, 0x60, 0x80, 0x01, 0x70, 0x5e, 0x30, 0x80
    db  0x06, 0x60, 0x40, 0x5f, 0x30, 0x10, 0x04, 0x60
    db  0x40, 0xf1, 0x52, 0x30, 0x70, 0x20, 0x70, 0x30
    db  0xf1, 0x51, 0x70, 0x40, 0x56, 0x71, 0x5e, 0x60
    db  0x10, 0x30, 0x53, 0x40, 0x20, 0x00, 0x20, 0x5e
    db  0x60, 0x01, 0x20, 0x40, 0x50, 0x30, 0x60, 0x01
    db  0x70, 0x54, 0x40, 0x58, 0x60, 0x02, 0x10, 0x20
    db  0x80, 0x01, 0x70, 0x54, 0x40, 0x30, 0x58, 0x40
    db  0x60, 0x04, 0x10, 0x30, 0x55, 0x30, 0x20, 0x5a
    db  0x20, 0x03, 0x10, 0x30, 0x55, 0x20, 0x60, 0x59
    db  0x30, 0x80, 0x05, 0x20, 0x40, 0x53, 0x60, 0x00
    db  0x30, 0x57, 0x70, 0x01, 0x80, 0x30, 0x70, 0x80
    db  0x02, 0x20, 0x52, 0x30, 0x01, 0x60, 0x57, 0x60
    db  0x00, 0x60, 0x40, 0x51, 0x40, 0x60, 0x01, 0x20
    db  0x52, 0x60, 0x02, 0x70, 0x56, 0x60, 0x20, 0x55
    db  0x70, 0x80, 0x20, 0x51, 0x70, 0x03, 0x80, 0x30
    db  0x55, 0x40, 0x57, 0x40, 0x30, 0x50, 0x30, 0x80
    db  0x04, 0x80, 0x30, 0x5f, 0x30, 0x80, 0x06, 0x80
    db  0x30, 0x5d, 0x30, 0x80, 0x09, 0x60, 0x30, 0x59
    db  0x30, 0x60, 0x0d, 0x60, 0x70, 0x30, 0x53, 0x30
    db  0x70, 0x60, 0x07