From 598bfb091e51a8d5b7e463bd834203d677d99977 Mon Sep 17 00:00:00 2001 From: travisutk Date: Mon, 24 May 2010 09:42:17 +0000 Subject: [PATCH] Fixed monitor peek. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@567 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- client/GoodFET.py | 3 +++ 1 file changed, 3 insertions(+) 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]; -- 2.20.1