|
1 | | -// Copyright [2021] <tiansongyu> |
2 | | - |
| 1 | +// Copyright (C) 2020-2022 tiansongyu |
| 2 | +// |
| 3 | +// This file is part of 6502Emulator. |
| 4 | +// |
| 5 | +// 6502Emulator is free GameEngine: you can redistribute it and/or modify |
| 6 | +// it under the terms of the GNU General Public License as published by |
| 7 | +// the Free Software Foundation, either version 3 of the License, or |
| 8 | +// (at your option) any later version. |
| 9 | +// |
| 10 | +// 6502Emulator is distributed in the hope that it will be useful, |
| 11 | +// but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | +// GNU General Public License for more details. |
| 14 | +// |
| 15 | +// You should have received a copy of the GNU General Public License |
| 16 | +// along with 6502Emulator. If not, see <http://www.gnu.org/licenses/>. |
| 17 | +// |
| 18 | +// 6502Emulator is actively maintained and developed! |
3 | 19 | #include <deque> |
4 | 20 | #include <iostream> |
5 | 21 | #include <sstream> |
@@ -64,14 +80,14 @@ class Demo_olcNES : public olc::PixelGameEngine |
64 | 80 | { |
65 | 81 | std::string status = "STATUS: "; |
66 | 82 | DrawString(x, y, "STATUS:", olc::WHITE); |
67 | | - DrawString(x + 64, y, "N", nes.cpu.status & olc6502::N ? olc::GREEN : olc::RED); |
68 | | - DrawString(x + 80, y, "V", nes.cpu.status & olc6502::V ? olc::GREEN : olc::RED); |
69 | | - DrawString(x + 96, y, "-", nes.cpu.status & olc6502::U ? olc::GREEN : olc::RED); |
70 | | - DrawString(x + 112, y, "B", nes.cpu.status & olc6502::B ? olc::GREEN : olc::RED); |
71 | | - DrawString(x + 128, y, "D", nes.cpu.status & olc6502::D ? olc::GREEN : olc::RED); |
72 | | - DrawString(x + 144, y, "I", nes.cpu.status & olc6502::I ? olc::GREEN : olc::RED); |
73 | | - DrawString(x + 160, y, "Z", nes.cpu.status & olc6502::Z ? olc::GREEN : olc::RED); |
74 | | - DrawString(x + 178, y, "C", nes.cpu.status & olc6502::C ? olc::GREEN : olc::RED); |
| 83 | + DrawString(x + 64, y, "N", nes.cpu.status & Nes6502::N ? olc::GREEN : olc::RED); |
| 84 | + DrawString(x + 80, y, "V", nes.cpu.status & Nes6502::V ? olc::GREEN : olc::RED); |
| 85 | + DrawString(x + 96, y, "-", nes.cpu.status & Nes6502::U ? olc::GREEN : olc::RED); |
| 86 | + DrawString(x + 112, y, "B", nes.cpu.status & Nes6502::B ? olc::GREEN : olc::RED); |
| 87 | + DrawString(x + 128, y, "D", nes.cpu.status & Nes6502::D ? olc::GREEN : olc::RED); |
| 88 | + DrawString(x + 144, y, "I", nes.cpu.status & Nes6502::I ? olc::GREEN : olc::RED); |
| 89 | + DrawString(x + 160, y, "Z", nes.cpu.status & Nes6502::Z ? olc::GREEN : olc::RED); |
| 90 | + DrawString(x + 178, y, "C", nes.cpu.status & Nes6502::C ? olc::GREEN : olc::RED); |
75 | 91 | DrawString(x, y + 10, "PC: $" + hex(nes.cpu.pc, 4)); |
76 | 92 | DrawString(x, y + 20, "A: $" + hex(nes.cpu.a, 2) + " [" + std::to_string(nes.cpu.a) + "]"); |
77 | 93 | DrawString(x, y + 30, "X: $" + hex(nes.cpu.x, 2) + " [" + std::to_string(nes.cpu.x) + "]"); |
|
0 commit comments