#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 release();
void reset();
void event_frame();
- void write_signal(int id, uint32 data, uint32 mask);
- uint32 read_signal(int ch);
+ 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);
// unique functions
- void set_context_busy(DEVICE* device, int id, uint32 mask)
+ void set_context_busy(DEVICE* device, int id, uint32_t mask)
{
register_output_signal(&outputs_busy, device, id, mask);
}
- void set_context_ack(DEVICE* device, int id, uint32 mask)
+ void set_context_ack(DEVICE* device, int id, uint32_t mask)
{
register_output_signal(&outputs_ack, device, id, mask);
}