MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / writeTopFloat

Function writeTopFloat

source/test/testFPU.cpp:178–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178void writeTopFloat(int index, bool pop = false) {
179 pushCode8(0xd9);
180 pushCode8(rm(true, pop?3:2, cpu->big ? 5 : 6));
181 if (cpu->big)
182 pushCode32(4 * index);
183 else
184 pushCode16(4 * index);
185}
186
187void writeTopDouble(int index, bool pop = false) {
188 pushCode8(0xdd);

Callers 15

doF32InstructionFunction · 0.85
doFLDStiFunction · 0.85
doFXCHSTiFunction · 0.85
doFSTPSTiFunction · 0.85
doFCHSFunction · 0.85
doFABSFunction · 0.85
doFLD1Function · 0.85
doFLDL2TFunction · 0.85
doFLDL2EFunction · 0.85
doFLDPIFunction · 0.85
doFLDLG2Function · 0.85
doFLDLN2Function · 0.85

Calls 4

pushCode8Function · 0.85
rmFunction · 0.85
pushCode32Function · 0.85
pushCode16Function · 0.85

Tested by

no test coverage detected