Canola  0.8.D001
Classes | Public Types | Public Member Functions | Public Attributes
display Class Reference

#include <display.h>

List of all members.

Classes

struct  tube_t

Public Types

enum  column18_t {
  column18_blank, column18_minus, column18_ce, column18_cm,
  column18_e, column18_fj, column18_ej, column18_uj,
  column18_mj, column18_sj, column18_rv, column18_sfj,
  column18_suj, column18_srj, column18_right, column18_cs
}
enum  column19_t {
  column19_blank, column19_plus_equals, column19_minus_equals, column19_times,
  column19_divide, column19_sqrt, column19_m_plus, column19_m_minus,
  column19_rm, column19_sm, column19_print
}
enum  column20_t {
  column20_blank, column20_n1, column20_fd, column20_round_up,
  column20_round_off, column20_round_down, column20_dot
}
enum  column21_t {
  column21_blank, column21_n0, column21_n1, column21_n2,
  column21_n3, column21_n4, column21_n5, column21_n6,
  column21_n7, column21_n8, column21_n9
}

Public Member Functions

 ~display ()
 display ()
 display (const display &rhs)
displayoperator= (const display &rhs)
void set_opcode (opcode_t op)

Public Attributes

bool overflow
tube_t tubes [16]
bool negative
bool m1
bool m2
bool entry
column18_t column18
column19_t column19
column20_t column20
column21_t column21

Detailed Description

The display class is used to represent the state of the display. This is used both for updating the display and for printing.

Definition at line 27 of file display.h.


Member Enumeration Documentation

Enumerator:
column18_blank 
column18_minus 
column18_ce 
column18_cm 
column18_e 
column18_fj 
column18_ej 
column18_uj 
column18_mj 
column18_sj 
column18_rv 
column18_sfj 
column18_suj 
column18_srj 
column18_right 
column18_cs 

Definition at line 63 of file display.h.

Enumerator:
column19_blank 
column19_plus_equals 
column19_minus_equals 
column19_times 
column19_divide 
column19_sqrt 
column19_m_plus 
column19_m_minus 
column19_rm 
column19_sm 
column19_print 

Definition at line 85 of file display.h.

Enumerator:
column20_blank 
column20_n1 
column20_fd 
column20_round_up 
column20_round_off 
column20_round_down 
column20_dot 

Definition at line 102 of file display.h.

Enumerator:
column21_blank 
column21_n0 
column21_n1 
column21_n2 
column21_n3 
column21_n4 
column21_n5 
column21_n6 
column21_n7 
column21_n8 
column21_n9 

Definition at line 115 of file display.h.


Constructor & Destructor Documentation

Definition at line 22 of file display.cc.

Definition at line 27 of file display.cc.

display::display ( const display rhs)

Definition at line 41 of file display.cc.


Member Function Documentation

display & display::operator= ( const display rhs)

Definition at line 58 of file display.cc.

The set_opcode method is used to set the right hand columns to indicate the opcode being performed, or for other informative reasons.

Parameters:
opThe opcode of interest.

Definition at line 113 of file display.cc.


Member Data Documentation

Definition at line 83 of file display.h.

Definition at line 100 of file display.h.

Definition at line 113 of file display.h.

Definition at line 130 of file display.h.

Definition at line 51 of file display.h.

Definition at line 49 of file display.h.

Definition at line 50 of file display.h.

Definition at line 48 of file display.h.

Definition at line 46 of file display.h.

Definition at line 47 of file display.h.


The documentation for this class was generated from the following files: