git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

commit 38daf24eabb518ca050ec84d325ad153d3803115
parent 71fb1dcdd5918bec06edf755c28f0e896a708a3c
Author: bbbbbr <reg+github@roughhousing.com>
Date:   Sat, 24 Jul 2021 11:00:23 -0700

BGB debug example: re-apply minor edits that were overwritten + add CGB to double speed text
Diffstat:
Mgbdk-lib/examples/gb/bgb_debug/bgb_debug.c5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/gbdk-lib/examples/gb/bgb_debug/bgb_debug.c b/gbdk-lib/examples/gb/bgb_debug/bgb_debug.c @@ -17,7 +17,7 @@ // // See the BGB Manual for more information // ("expressions, breakpoint conditions, and debug messages") -// http://bgb.bircd.org/manual.html#expressions +// https://bgb.bircd.org/manual.html#expressions int main(void) { @@ -75,7 +75,7 @@ int main(void) // You should see the message "NOP TIME: 1". __critical { // Temporarily turn off interrupts for more accurate measurements - BGB_PROFILE_BEGIN("Profile a single NOP instruction at Double Speed"); + BGB_PROFILE_BEGIN("Profile a single NOP instruction at CGB Double Speed"); __asm__("nop"); // The "-4+" subtracts 4 clocks to compensate for the ones // used by the debug message itself (Normal speed uses -8) @@ -111,7 +111,6 @@ int main(void) // Which Banks are currently active (for MBC based cartridges) BGB_MESSAGE("Current ROM bank: %ROMBANK%"); - BGB_MESSAGE("Current XRAM bank: %XRAMBANK%"); BGB_MESSAGE("Current SRAM bank: %SRAMBANK%"); // These are only banked in the CGB BGB_MESSAGE("Current VRAM bank: %VRAMBANK%");

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.