2 class Register(object):
4 def __init__(self
, virtual_ndx
= False, datatype
= False):
5 if virtual_ndx
== False:
8 self
.virtual_ndx
= virtual_ndx
11 self
.datatype
= datatype
16 return str(self
.virtual_ndx
)
18 def set_virtual_ndx(self
, virtual_ndx
):
19 self
.virtual_ndx
= virtual_ndx
21 def get_virtual_ndx(self
):
22 return self
.virtual_ndx
24 def set_datatype(self
, datatype
):
25 self
.data_type
= datatype
27 def get_datatype(self
):
30 def set_mem_loc(self
, loc
):
33 def get_mem_loc(self
):