view code_part1/OSTC_code_asm_part1/dive_nitrox.inc @ 241:f44274d8440a

Model cleanups. + Fix look for current gas. + Minor optimize. + Fix needs to remember last switch gas depth, too. + Always take deepest gas. + Optimize by limiting search to 10m/min ascent. + FIX ascending 10m is 0.9985 bar. + FIX typos 9995 --> 9985
author JeanDo
date Mon, 21 Mar 2011 20:50:52 +0100
parents 652e17b6267a
children
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