| 1074 | } |
| 1075 | |
| 1076 | U16 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 | |
| 1082 | U32 CPU::peek32(U32 index) { |
| 1083 | return memory->readd(this->seg[SS].address + ((THIS_ESP+index*4) & this->stackMask)); |
no test coverage detected