You should have seen how ugly the last hack to do this was.
git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@771
12e2690d-a6be-4b82-a7b7-
67c4a43b65c8
self.writecmd(self.APP,0x02, 2, self.data);
return ord(self.data[0]);
def pokebyte(self,adr,val,mem="data"):
self.writecmd(self.APP,0x02, 2, self.data);
return ord(self.data[0]);
def pokebyte(self,adr,val,mem="data"):
+ if mem!="data":
+ print "FIXME: poking of non data bytes not yet supported.";
self.CCpokedatabyte(adr,val);
def CCpokedatabyte(self,adr,val):
"""Write a byte to data memory."""
self.CCpokedatabyte(adr,val);
def CCpokedatabyte(self,adr,val):
"""Write a byte to data memory."""