Open ghost opened 5 years ago
when DEBUG is set to TRUE, it sets the internal global variable gl_debug to 1, which may be used to print some debugging information. See main_lcd.c lines 182-186:
while (gl_ok) {
if (gl_debug) { /* put any debugging stuff here */ }
next_frame();
if (serial) check_stdout();
}
The code:
printf("usage: ./gameboy <rom> [bootrom=%d] [speed_limit=%d] [debug=%d] [stdout=%d]\n",
BOOTROM, gl_debug, limit_speed, serial);
has gl_debug and limit_speed in the wrong position.
The usage suggests appending debug=1 to the command-line:
However, the emulator still reports that DEBUG=0: