def nxbdump(nxbfile):
    """
    Scan save files (.nxb) from Nexus Race and output the bitstream.

    References:
    * http://www.nexusmarine.se/support/info-and-reg-nexus-software/software-download/
    * http://www.chicagomarineelectronics.com/NX2_FDX.htm
    """
    content = open(nxbfile, 'rb').read()
    assert type(content) == bytes
    lastidx = 0
    while True:
        idx = content[lastidx:].find(b'\x81')
        if idx == -1:
            break
        yield 0.0, content[lastidx:lastidx + idx + 1]
        lastidx = lastidx + idx + 1
