- [NEW] Opció per a parar execució al acabar de carregar una cinta. - [NEW] Opció per a parar l'execució al trobar una instrucció del Z80 no vàlida - [NEW] Savestate del Fernando Martin, per a provar més ràpid. - [NEW] Treballant en el sistema d'anàlisi visual del codi
22 lines
500 B
C++
22 lines
500 B
C++
#pragma once
|
|
#include <stdint.h>
|
|
|
|
namespace zx_tape
|
|
{
|
|
#define ZXTAPE_OPTION_FAST_LOAD 0
|
|
#define ZXTAPE_OPTION_STOP_AT_END 1
|
|
#define ZXTAPE_NUM_OPTIONS 2
|
|
|
|
void load(const char* filename);
|
|
void play();
|
|
void stop();
|
|
void rewind();
|
|
void update(const uint8_t dt);
|
|
const bool getplaying();
|
|
void report();
|
|
|
|
const bool getOption(const int option);
|
|
void setOption(const int option, const bool value);
|
|
void toggleOption(const int option);
|
|
}
|