From: travisutk Date: Mon, 24 May 2010 09:42:17 +0000 (+0000) Subject: Fixed monitor peek. X-Git-Url: http://git.rot13.org/?p=goodfet;a=commitdiff_plain;h=598bfb091e51a8d5b7e463bd834203d677d99977 Fixed monitor peek. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@567 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- diff --git a/client/GoodFET.py b/client/GoodFET.py index 7e32773..b9c35e3 100755 --- a/client/GoodFET.py +++ b/client/GoodFET.py @@ -277,6 +277,9 @@ class GoodFET: def peekword(self,address): """Read a word of memory from the monitor.""" return self.peekbyte(address)+(self.peekbyte(address+1)<<8); + def peek(self,address): + """Read a word of memory from the monitor.""" + return self.peekbyte(address)+(self.peekbyte(address+1)<<8); def pokebyte(self,address,value): """Set a byte of memory by the monitor.""" self.data=[address&0xff,address>>8,value];