- Treballant en la CPU

This commit is contained in:
2025-01-13 14:01:41 +01:00
parent 44c044d64e
commit 17cf6f3884
3 changed files with 122 additions and 467 deletions

8
sm83.h
View File

@@ -4,6 +4,12 @@
namespace sm83
{
#define INTERRUPT_VBLANK 0x01
#define INTERRUPT_LCD 0x02
#define INTERRUPT_TIMER 0x04
#define INTERRUPT_SERIAL 0x08
#define INTERRUPT_JOYPAD 0x10
#define SM83_OPTION_STOP_ON_INVALID 0
#define SM83_OPTION_BREAK_ON_INTERRUPT 1
#define SM83_OPTION_BREAK_ON_RET 2
@@ -14,7 +20,7 @@ namespace sm83
void setClock(uint32_t freq);
uint32_t getClock();
void interrupt();
void interrupt(uint8_t type);
uint32_t step();