26#ifndef PART_VCD_DUMP_MEM_H
27#define PART_VCD_DUMP_MEM_H
29#include "../lib/part.h"
31#define PART_VCD_DUMP_MEM_Name "VCD Dump Memory"
33class cpart_VCD_Dump_Mem :
public part {
35 std::string
GetAboutInfo(
void)
override {
return "L.C. Gamboa \n <lcgamboa@yahoo.com>"; };
39 void DrawOutput(
const unsigned int index)
override;
43 std::string
GetMapFile(
void)
override {
return "VCD Dump/part.map"; };
45 void OnMouseButtonPress(
unsigned int inputId,
unsigned int button,
unsigned int x,
unsigned int y,
46 unsigned int state)
override;
52 unsigned short GetInputId(
char* name)
override;
58 unsigned long output_bits_alm[8];
59 unsigned char output_bits[8];
64 unsigned long vcd_count;
66 unsigned char mem_size;
67 unsigned short mem_addr;
68 unsigned short* mem_ptr;
69 unsigned short mem_old;
Board class.
Definition board.h:114
Definition virtual_VCD_Dump_Mem.h:33
std::string GetAboutInfo(void) override
Return the about information of part.
Definition virtual_VCD_Dump_Mem.h:35
int PreferencesNumberFields(void) override
Return the number of fields in preferences.
Definition virtual_VCD_Dump_Mem.h:49
std::string GetPictureFileName(void) override
Return the filename of part picture.
Definition virtual_VCD_Dump_Mem.h:42
std::string WritePreferences(void) override
Called to save part preferences in configuration file.
Definition virtual_VCD_Dump_Mem.cc:215
void Process(void) override
Called every CPU step.
Definition virtual_VCD_Dump_Mem.cc:326
std::string GetMapFile(void) override
Return the filename of part picture map.
Definition virtual_VCD_Dump_Mem.h:43
void ReadPropertiesWindow(void) override
Called when properties window close.
Definition virtual_VCD_Dump_Mem.cc:239
void PreProcess(void) override
Called every start of CPU process.
Definition virtual_VCD_Dump_Mem.cc:249
void RegisterRemoteControl(void) override
Register remote control variables.
Definition virtual_VCD_Dump_Mem.cc:87
void OnMouseButtonPress(unsigned int inputId, unsigned int button, unsigned int x, unsigned int y, unsigned int state) override
Event handler on the part.
Definition virtual_VCD_Dump_Mem.cc:400
unsigned short GetInputId(char *name) override
return the input ids numbers of names used in input map
Definition virtual_VCD_Dump_Mem.cc:161
unsigned short GetOutputId(char *name) override
return the output ids numbers of names used in output map
Definition virtual_VCD_Dump_Mem.cc:171
void PostProcess(void) override
Called every end of CPU process.
Definition virtual_VCD_Dump_Mem.cc:380
void ConfigurePropertiesWindow(void) override
Called to configure the properties window.
Definition virtual_VCD_Dump_Mem.cc:230
int ReadPreferences(std::string value) override
Called whe configuration file load preferences, return the number of preferences processed.
Definition virtual_VCD_Dump_Mem.cc:221
void DrawOutput(const unsigned int index) override
Called to draw every output.
Definition virtual_VCD_Dump_Mem.cc:103
part(const unsigned x, const unsigned y, const char *name, const char *type, board *pboard_, const int id_, const int fsize=8)
Called once on part creation.
Definition part.cc:30