Ypsilon.Emulation.Processor.YCPU.StackPush C# (CSharp) Method

StackPush() private method

private StackPush ( ushort operand, ushort value ) : void
operand ushort
value ushort
return void
        private void StackPush(ushort operand, ushort value)
        {
            SP -= 2;
            try {
                WriteMemInt16(SP, value, SegmentIndex.SS);
            }
            catch (SegFaultException e) {
                Interrupt_StackFault(operand, e.Address);
            }
        }