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

Function common_bsrr32e32

source/emulation/cpu/common/common_bit.cpp:306–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304 }
305}
306void common_bsrr32e32(CPU* cpu, U32 address, U32 dstReg) {
307 U32 value=cpu->memory->readd(address);
308 cpu->fillFlagsNoZF();
309 if (value==0) {
310 cpu->addZF();
311 } else {
312 U32 result = 31;
313 while ((value & 0x80000000)==0) { result--; value<<=1; }
314 cpu->removeZF();
315 cpu->reg[dstReg].u32=result;
316 }
317}

Callers 1

normal_bsrr32e32Function · 0.85

Calls 4

fillFlagsNoZFMethod · 0.80
addZFMethod · 0.80
removeZFMethod · 0.80
readdMethod · 0.45

Tested by

no test coverage detected