uroboros-diversification/src/postprocess/compile_process.py
def cbzmapper():
    """
    Get routine to translate out of range cbz
    """
    cbzpatt = re.compile('([^\:]+\s*\:\s*)?(cbn?z)\s+([^,]+),([^\n]+)', re.I)
    def mapper(line):
        m = cbzpatt.match(line)
        if not m: return line
        items = list(m.groups())
        if items[0] is None: items[0] = ''
        items[1] = 'ne' if len(items[1]) > 3 else 'eq'
        return '{0}cmp {2},#0\nb{1} {3}\n'.format(*items)
    return mapper

    Get routine to translate out of range cbz
    
Get routine to translate out of range cbz
Get routine to translate out of range cbz
def cbzmapper():
    cbzpatt = re.compile('([^\:]+\s*\:\s*)?(cbn?z)\s+([^,]+),([^\n]+)', re.I)
    def mapper(line):
        m = cbzpatt.match(line)
        if not m: return line
        items = list(m.groups())
        if items[0] is None: items[0] = ''
        items[1] = 'ne' if len(items[1]) > 3 else 'eq'
        return '{0}cmp {2},#0\nb{1} {3}\n'.format(*items)
    return mapper
def cbzmapper ( ) : cbzpatt = re . compile ( '([^\:]+\s*\:\s*)?(cbn?z)\s+([^,]+),([^\n]+)' , re . I ) def mapper ( line ) : m = cbzpatt . match ( line ) if not m : return line items = list ( m . groups ( ) ) if items [ 0 ] is None : items [ 0 ] = '' items [ 1 ] = 'ne' if len ( items [ 1 ] ) > 3 else 'eq' return '{0}cmp {2},#0\nb{1} {3}\n' . format ( * items ) return mapper
Get routine to translate out of range cbz
Get routine to translate out of range cbz
"""
    Get routine to translate out of range cbz
    """