def _ploadf(ins): ''' Loads from stack pointer (SP) + X, being X 2st parameter. 1st operand must be a SIGNED integer. ''' output = _pload(ins.quad[2], 5) output.extend(_fpush()) return output
def _paloadf(ins): ''' Loads a floating point value from a memory address. If 2nd arg. start with '*', it is always treated as an indirect value. ''' output = _paddr(ins.quad[2]) output.append('call __ILOADF') output.extend(_fpush()) REQUIRES.add('iloadf.asm') return output
def _aloadf(ins): ''' Loads a floating point value from a memory address. If 2nd arg. start with '*', it is always treated as an indirect value. ''' output = _addr(ins.quad[2]) output.append('call __LOADF') output.extend(_fpush()) REQUIRES.add('iloadf.asm') return output