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

Method pop16

source/emulation/cpu/common/cpu.cpp:1076–1080  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1074}
1075
1076U16 CPU::pop16() {
1077 U16 val = memory->readw(this->seg[SS].address + (THIS_ESP & this->stackMask));
1078 THIS_ESP = (THIS_ESP & this->stackNotMask) | ((THIS_ESP + 2 ) & this->stackMask);
1079 return val;
1080}
1081
1082U32 CPU::peek32(U32 index) {
1083 return memory->readd(this->seg[SS].address + ((THIS_ESP+index*4) & this->stackMask));

Callers 8

common_pop16Function · 0.45
common_popA16Function · 0.45
normal_popEw_regFunction · 0.45
normal_popEw_memFunction · 0.45
normal_popf16Function · 0.45
normal_retn16IwFunction · 0.45
normal_retn16Function · 0.45
normal_leave16Function · 0.45

Calls 1

readwMethod · 0.45

Tested by

no test coverage detected