SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit e49527eff8e99c1137c3c87d8916a95a87512d5e parent 1720638017d7b8fac13512ef74832e5f2dfe3a75 Author: Lior Halphon <LIJI32@gmail.com> Date: Sun, 16 Oct 2022 16:04:30 +0300 Shifter and fetcher information in the debugger Diffstat:
| M | Core/debugger.c | 11 | +++++++++++ |
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git a/Core/debugger.c b/Core/debugger.c @@ -1746,6 +1746,17 @@ static bool lcd(GB_gameboy_t *gb, char *arguments, char *modifiers, const debugg GB_log(gb, "LYC: %d\n", gb->io_registers[GB_IO_LYC]); GB_log(gb, "Window position: %d, %d\n", (signed) gb->io_registers[GB_IO_WX] - 7, gb->io_registers[GB_IO_WY]); GB_log(gb, "Interrupt line: %s\n", gb->stat_interrupt_line? "On" : "Off"); + GB_log(gb, "Background shifter size: %d\n", gb->bg_fifo.size); + GB_log(gb, "Background fetcher state: %s\n", (const char *[]){ + "Tile (1/2)", + "Tile (2/2)", + "Low data (1/2)", + "Low data (2/2)", + "High data (1/2)", + "High data (2/2)", + "Push (1/2)", + "Push (2/2)", + }[gb->fetcher_state & 7]); return true; }
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.