#ifndef _PRNFILE_H_
#define _PRNFILE_H_
-#include "vm.h"
-#include "../emu.h"
+//#include "vm.h"
+//#include "../emu.h"
#include "device.h"
class FILEIO;
FILEIO *fio;
int value, busy_id, ack_id, wait_frames;
bool strobe, res, busy, ack;
-
+
+ bool _PRINTER_STROBE_RISING_EDGE;
+
void set_busy(bool value);
void set_ack(bool value);
void open_file();
{
initialize_output_signals(&outputs_busy);
initialize_output_signals(&outputs_ack);
+ _PRINTER_STROBE_RISING_EDGE = false;
+ set_device_name(_T("DUMMY PRINTER DEVICE"));
}
~PRNFILE() {}
void write_signal(int id, uint32_t data, uint32_t mask);
uint32_t read_signal(int ch);
void event_callback(int event_id, int err);
+ void decl_state();
void save_state(FILEIO* state_fio);
bool load_state(FILEIO* state_fio);
- const _TCHAR *get_device_name()
- {
- return _T("Dummy Printer Device");
- }
// unique functions
void set_context_busy(DEVICE* device, int id, uint32_t mask)