File: port_hwcl.h

package info (click to toggle)
sdcc 3.8.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 99,212 kB
  • sloc: ansic: 918,594; cpp: 69,526; makefile: 56,790; sh: 29,616; asm: 12,364; perl: 12,136; yacc: 7,179; lisp: 1,672; python: 812; lex: 773; awk: 495; sed: 89
file content (54 lines) | stat: -rw-r--r-- 1,047 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/* $Id: port_hwcl.h 494 2016-11-10 20:52:08Z drdani $ */

#ifndef PORT_HW_HEADER
#define PORT_HW_HEADER

#include "newcmdposixcl.h"

#include "hwcl.h"


extern const char *keysets[7];


class cl_port_io: public cl_hw_io
{
 public:
  cl_port_io(class cl_hw *ihw);
  virtual int init(void);
  //virtual bool input_avail(void);  
};

class cl_port_data: public cl_base
{
 public:
  class cl_memory_cell *cell_p, *cell_in, *cell_dir;
  t_mem cache_p, cache_in, cache_dir, cache_value;
  char *keyset;
  int basx, basy;
};

enum { NUOF_PORT_UIS= 16 };

class cl_port_ui: public cl_hw
{
 public:
  class cl_port_data pd[16];
  int act_port;
 public:
  cl_port_ui(class cl_uc *auc, int aid, chars aid_string);

  virtual bool add_port(class cl_port_data *p, int nr);
  
  virtual void make_io(void);
  virtual void new_io(class cl_f *f_in, class cl_f *f_out);
  virtual bool proc_input(void);
  virtual bool handle_input(int c);
  virtual void refresh_display(bool force);
  virtual void draw_display(void);
};


#endif

/* End of sim.src/port_hwcl.h */