Files
JailDoctor ed2c014c7e - [CHG] Gestió de interrupcions pasada a "mem" (futur "bus")
- [CHG] Reorganitzacions i neteja de codi
- [NEW] Constants del espai io en la seua pròpia capçalera
- [NEW] Comentaris en algunes parts menys obvies del codi
- [CHG] Alguns defines passats a constexpr
- [CHG] display::init() no feia més que cridar a display::reinit(). Concretats els dos en display::init()
- [ONGOING] Passant la responsabilitat de tornar el foco a la finestra principal (que estaba en el mòdul debug) al gestor de finestres.
2026-06-04 13:44:50 +02:00

41 lines
757 B
C++

#pragma once
#include <stdint.h>
#include "interrupts.h"
namespace sm83
{
#define SM83_OPTION_STOP_ON_INVALID 0
#define SM83_OPTION_BREAK_ON_INTERRUPT 1
#define SM83_OPTION_BREAK_ON_RET 2
#define SM83_NUM_OPTIONS 3
void reset();
void setClock(uint32_t freq);
uint32_t getClock();
void processInterrupts();
uint32_t step();
uint8_t *getRegs();
uint16_t getAF();
uint16_t getBC();
uint16_t getDE();
uint16_t getHL();
uint16_t getSP();
uint16_t getPC();
uint8_t getI();
uint8_t getR();
void setPC(const uint16_t addr);
const bool getOption(const int option);
void setOption(const int option, const bool value);
void toggleOption(const int option);
}