When you do a PEI $00, the values in the direct page, at location $00, and $01 are pushed onto the stack. The documentation refers to PEI as being indirect, but that is only in comparison to PEA, which is clearly immediate.
PEI ($00), implies, that it will fetch the value from the memory location that address $00, and $01 are pointing at. There is no such functionality. This is not how PEI works, and at least in Merlin, ORCA, and SNASM assemblers, you PEI is implemented with a single Direct page address, no parentheses.
I think maybe PEI is another confusing opcode.
When you do a PEI $00, the values in the direct page, at location $00, and $01 are pushed onto the stack. The documentation refers to PEI as being indirect, but that is only in comparison to PEA, which is clearly immediate.
PEI ($00), implies, that it will fetch the value from the memory location that address $00, and $01 are pointing at. There is no such functionality. This is not how PEI works, and at least in Merlin, ORCA, and SNASM assemblers, you PEI is implemented with a single Direct page address, no parentheses.