SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit c8b3b080a81843085dd13d902d150cbb1b212a6d parent 830f2ddc3883e6f532d1c79b228715e3d46a39f6 Author: Lior Halphon <LIJI32@gmail.com> Date: Sat, 4 Feb 2023 12:49:46 +0200 Remove debugging code Diffstat:
| M | Core/save_state.c | 44 | -------------------------------------------- |
1 file changed, 0 insertions(+), 44 deletions(-)
diff --git a/Core/save_state.c b/Core/save_state.c @@ -1519,47 +1519,3 @@ exit: fclose(f); return ret; } - -static void __attribute__((constructor)) wtf(void) -{ - printf("base offset %lx\n", GB_SECTION_OFFSET(apu) - offsetof(GB_gameboy_t, apu)); - - printf("global_enable: %lx\n", offsetof(GB_apu_t, global_enable)); - printf("apu_cycles: %lx\n", offsetof(GB_apu_t, apu_cycles)); - - printf("samples: %lx\n", offsetof(GB_apu_t, samples)); - printf("is_active: %lx\n", offsetof(GB_apu_t, is_active)); - - printf("div_divider: %lx\n", offsetof(GB_apu_t, div_divider)); - printf("lf_div: %lx\n", offsetof(GB_apu_t, lf_div)); - - printf("square_sweep_countdown: %lx\n", offsetof(GB_apu_t, square_sweep_countdown)); - printf("square_sweep_calculate_countdown: %lx\n", offsetof(GB_apu_t, square_sweep_calculate_countdown)); - printf("sweep_length_addend: %lx\n", offsetof(GB_apu_t, sweep_length_addend)); - printf("shadow_sweep_sample_length: %lx\n", offsetof(GB_apu_t, shadow_sweep_sample_length)); - printf("unshifted_sweep: %lx\n", offsetof(GB_apu_t, unshifted_sweep)); - printf("enable_zombie_calculate_stepping: %lx\n", offsetof(GB_apu_t, enable_zombie_calculate_stepping)); - - printf("channel_1_restart_hold: %lx\n", offsetof(GB_apu_t, channel_1_restart_hold)); - printf("channel1_completed_addend: %lx\n", offsetof(GB_apu_t, channel1_completed_addend)); - printf("square_channels: %lx\n", offsetof(GB_apu_t, square_channels)); - - printf("wave_channel: %lx\n", offsetof(GB_apu_t, wave_channel)); - printf("noise_channel: %lx\n", offsetof(GB_apu_t, noise_channel)); - - printf("pcm_mask: %lx\n", offsetof(GB_apu_t, pcm_mask)); - - GB_gameboy_t *gb; - printf("pulse_length %lx\n", offsetof(typeof(gb->apu.square_channels[0]), pulse_length)); - printf("current_volume %lx\n", offsetof(typeof(gb->apu.square_channels[0]), current_volume)); - printf("volume_countdown %lx\n", offsetof(typeof(gb->apu.square_channels[0]), volume_countdown)); - printf("current_sample_index %lx\n", offsetof(typeof(gb->apu.square_channels[0]), current_sample_index)); - printf("sample_surpressed %lx\n", offsetof(typeof(gb->apu.square_channels[0]), sample_surpressed)); - - printf("sample_countdown %lx\n", offsetof(typeof(gb->apu.square_channels[0]), sample_countdown)); - printf("sample_length %lx\n", offsetof(typeof(gb->apu.square_channels[0]), sample_length)); - printf("length_enabled %lx\n", offsetof(typeof(gb->apu.square_channels[0]), length_enabled)); - printf("envelope_clock %lx\n", offsetof(typeof(gb->apu.square_channels[0]), envelope_clock)); - printf("delay %lx\n", offsetof(typeof(gb->apu.square_channels[0]), delay)); - printf("did_tick %lx\n", offsetof(typeof(gb->apu.square_channels[0]), did_tick)); -}
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.