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/cpu.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/cpu.h')
| -rw-r--r-- | src/cpu.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cpu.h b/src/cpu.h new file mode 100644 index 0000000..8415951 --- /dev/null +++ b/src/cpu.h @@ -0,0 +1,9 @@ +#ifndef GBC_CPU_H +#define GBC_CPU_H + +#include "gb.h" + +// Execute one instruction (or handle interrupt / halt). Returns T-cycles used. +int cpu_step(GB *gb); + +#endif |
