def to_fixed(stype):
    """ Returns the instruction sequence for converting the given
    type stored in DE,HL to fixed DE,HL.
    """
    output = []  # List of instructions

    if is_int_type(stype):
        output = to_word(stype)
        output.append('ex de, hl')
        output.append('ld hl, 0')  # 'Truncate' the fixed point
    elif stype == 'f':
        output.append('call __FTOF16REG')
        REQUIRES.add('ftof16reg.asm')

    return output
def to_fixed ( stype ) : output = [ ] if is_int_type ( stype ) : output = to_word ( stype ) output . append ( 'ex de, hl' ) output . append ( 'ld hl, 0' ) elif stype == 'f' : output . append ( 'call __FTOF16REG' ) REQUIRES . add ( 'ftof16reg.asm' ) return output
Returns the instruction sequence for converting the given
    type stored in DE,HL to fixed DE,HL.