public void Push(IOperand u8) { if (!_isWriting) { throw new Exception("Push can only be used within a LiveQueue.Write() block"); } Values[_indexReg].Set(u8); _indexReg.Inc(); }
public void PushOnce(IndexingRegister indexReg, U8 u8) { if (indexReg is RegisterX) { X.Set(WriteIndex); } else if (indexReg is RegisterY) { Y.Set(WriteIndex); } Values[indexReg].Set(u8); indexReg.Inc(); Values[indexReg].Set(_stopVal); WriteIndex.Set(indexReg); }
public void Unsafe_Pop(IndexingRegister indexReg) => indexReg.Inc();