diff options
| author | gbc dev <gbc@localhost> | 2026-07-04 22:11:10 +0200 |
|---|---|---|
| committer | gbc dev <gbc@localhost> | 2026-07-04 22:11:10 +0200 |
| commit | bc48df9f7162a4a816fdc0edaa6ed08304008c9c (patch) | |
| tree | 30129f7655c177a78e62505c55243a5c0540126f /src/timer.h | |
| parent | scaffolding: build system, cartridge loader with MBC1/2/3/5, core types (diff) | |
| download | sl0pboy-bc48df9f7162a4a816fdc0edaa6ed08304008c9c.tar.gz sl0pboy-bc48df9f7162a4a816fdc0edaa6ed08304008c9c.tar.xz sl0pboy-bc48df9f7162a4a816fdc0edaa6ed08304008c9c.zip | |
core emulator: SM83 CPU, MMU, timer, PPU, CGB support
Passes blargg cpu_instrs (all 11), instr_timing, mem_timing.
Diffstat (limited to 'src/timer.h')
| -rw-r--r-- | src/timer.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/timer.h b/src/timer.h new file mode 100644 index 0000000..95fec0d --- /dev/null +++ b/src/timer.h @@ -0,0 +1,10 @@ +#ifndef GBC_TIMER_H +#define GBC_TIMER_H + +#include "gb.h" + +void timer_tick(GB *gb, int tcycles); +u8 timer_read(GB *gb, u16 addr); +void timer_write(GB *gb, u16 addr, u8 val); + +#endif |
