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

Method peek16

source/emulation/cpu/common/cpu.cpp:1086–1088  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1084}
1085
1086U16 CPU::peek16(U32 index) {
1087 return memory->readw(this->seg[SS].address+ ((THIS_ESP+index*2) & this->stackMask));
1088}
1089
1090void CPU::push16(U16 value) {
1091 U32 new_esp=(THIS_ESP & this->stackNotMask) | ((THIS_ESP - 2) & this->stackMask);

Callers 3

iretMethod · 0.95
common_peek16Function · 0.45
normal_popSeg16Function · 0.45

Calls 1

readwMethod · 0.45

Tested by

no test coverage detected