Пример #1
0
 private void Handler()
 {
     _liveQueue.Unsafe_Pop(Y);
     NES.PPU.Reset();
     NES.PPU.Address.Set(_liveQueue.Unsafe_Peek(Y));
     _liveQueue.Unsafe_Pop(Y);
     NES.PPU.Address.Set(_liveQueue.Unsafe_Peek(Y));
     GoTo(_executeLoopContinue);
 }
 private void Handler()
 {
     _liveQueue.Unsafe_Pop(Y);
     X.Set(_liveQueue.Unsafe_Peek(Y));             //Number of bytes of data
     Loop.Do_old(_ => {
         _liveQueue.Unsafe_Pop(Y);
         NES.PPU.Data.Set(_liveQueue.Unsafe_Peek(Y));
         X.Dec();
     }).While(() => X.NotEquals(0));
     GoTo(_executeLoopContinue);
 }
Пример #3
0
        private void Handler()
        {
            _liveQueue.Unsafe_Pop(Y);

            TempPtr0.Lo.Set(_liveQueue.Unsafe_Peek(Y));
            _liveQueue.Unsafe_Pop(Y);
            TempPtr0.Hi.Set(_liveQueue.Unsafe_Peek(Y));
            GoSub(LabelFor(StackCall));

            GoTo(_executeLoopContinue);
        }
Пример #4
0
 private void Handler()
 {
     _liveQueue.Unsafe_Pop(Y);
     X.Set(_liveQueue.Unsafe_Peek(Y));             //Number of bytes of data
     Loop.While_Pre(() => X.NotEquals(VRamQueue.Op.NOP), _ => {
         _liveQueue.Unsafe_Pop(Y);
         A.Set(_liveQueue.Unsafe_Peek(Y));
         Loop.Descend_Post(X, _ => {
             NES.PPU.Data.Set(A);
         });
         _liveQueue.Unsafe_Pop(Y);
         X.Set(_liveQueue.Unsafe_Peek(Y));
     });
     GoTo(_executeLoopContinue);
 }
Пример #5
0
 private void Handler()
 {
     Comment("Pause");
     _liveQueue.Unsafe_Pop(Y);
     _pauseCount.Set(_liveQueue.Unsafe_Peek(Y));
     Y.Increment();
     GoTo(_executeLoopBreak);
 }
        private void Handler()
        {
            _liveQueue.Unsafe_Pop(Y);
            TempPtr0.Lo.Set(_liveQueue.Unsafe_Peek(Y));
            _liveQueue.Unsafe_Pop(Y);
            TempPtr0.Hi.Set(_liveQueue.Unsafe_Peek(Y));

            Stack.Preserve(Y, () => {
                Y.Set(0);
                NES.PPU.SetAddress(NES.MemoryMap.Palette);
                Loop.AscendWhile(Y.Set(0), () => Y.NotEquals(32), _ => {
                    NES.PPU.Data.Set(TempPtr0[Y]);
                });
            });

            GoTo(_executeLoopContinue);
        }
Пример #7
0
        private void Handler()
        {
            _liveQueue.Unsafe_Pop(Y);
            TempPtr0.Lo.Set(_liveQueue.Unsafe_Peek(Y));
            _liveQueue.Unsafe_Pop(Y);
            TempPtr0.Hi.Set(_liveQueue.Unsafe_Peek(Y));
            _liveQueue.Unsafe_Pop(Y);
            X.Set(_liveQueue.Unsafe_Peek(Y));             //Number of bytes of data

            Stack.Preserve(Y, () => {
                Y.Set(0);
                Loop.Descend_Post(X, _ => {
                    NES.PPU.Data.Set(TempPtr0[Y]);
                    Y.Increment();
                });
            });

            GoTo(_executeLoopContinue);
        }
        private void Handler()
        {
            _liveQueue.Unsafe_Pop(Y);
            _ptrRomStart.Lo.Set(_liveQueue.Unsafe_Peek(Y));
            _liveQueue.Unsafe_Pop(Y);
            _ptrRomStart.Hi.Set(_liveQueue.Unsafe_Peek(Y));
            _liveQueue.Unsafe_Pop(Y);
            A.Set(_liveQueue.Unsafe_Peek(Y));             //Number of bytes of data

            Loop.While_Pre(() => A.NotEquals(VRamQueue.Op.NOP), _ => { });

            Stack.Preserve(Y, () => {
                Y.Set(0);
                Loop.Descend_Post(X, _ => {
                    NES.PPU.Data.Set(TempPtr0[Y]);
                    Y.Increment();
                });
            });

            GoTo(_executeLoopContinue);
        }
Пример #9
0
 private void Handler()
 {
     _liveQueue.Unsafe_Pop(Y);
     NES.PPU.Data.Set(_liveQueue.Unsafe_Peek(Y));
     GoTo(_executeLoopContinue);
 }
Пример #10
0
 private void Handler_EOF()
 {
     Comment("End of frame");
     _liveQueue.Unsafe_Pop(Y);
     GoTo(_executeLoopBreak);
 }
 public void Unsafe_Pop() => _liveQueue.Unsafe_Pop(Y);