pgtt/codegen.py
def _mk_asm() -> str:
    """
    Generate assembly to program all allocated translation tables.
    """
    string = ""
    for n,t in enumerate(table.Table._allocated):
        string += _mk_table(n, t)
        keys = sorted(list(t.entries.keys()))
        while keys:
            index = keys[0]
            entry = t.entries[index]
            if type(entry) is Region:
                string += _mk_blocks(n, t, index, entry)
                for k in range(index, index+entry.num_contig):
                    keys.remove(k)
            else:
                string += _mk_next_level_table(n, index, entry)
                keys.remove(index)
    return string

    Generate assembly to program all allocated translation tables.
    
Generate assembly to program all allocated translation tables.
Generate assembly to program all allocated translation tables .
def _mk_asm() -> str:
    string = ""
    for n,t in enumerate(table.Table._allocated):
        string += _mk_table(n, t)
        keys = sorted(list(t.entries.keys()))
        while keys:
            index = keys[0]
            entry = t.entries[index]
            if type(entry) is Region:
                string += _mk_blocks(n, t, index, entry)
                for k in range(index, index+entry.num_contig):
                    keys.remove(k)
            else:
                string += _mk_next_level_table(n, index, entry)
                keys.remove(index)
    return string
def _mk_asm ( ) -> str : string = "" for n , t in enumerate ( table . Table . _allocated ) : string += _mk_table ( n , t ) keys = sorted ( list ( t . entries . keys ( ) ) ) while keys : index = keys [ 0 ] entry = t . entries [ index ] if type ( entry ) is Region : string += _mk_blocks ( n , t , index , entry ) for k in range ( index , index + entry . num_contig ) : keys . remove ( k ) else : string += _mk_next_level_table ( n , index , entry ) keys . remove ( index ) return string
Generate assembly to program all allocated translation tables.
Generate assembly to program all allocated translation tables .
"""
    Generate assembly to program all allocated translation tables.
    """