Files
z80/zx_tape.h

23 lines
596 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();
uint16_t fastLoad(const uint8_t block_type, const uint16_t address, const uint16_t length);
const bool getOption(const int option);
void setOption(const int option, const bool value);
void toggleOption(const int option);
}