X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2FGoodFET.py;h=b9c35e3adc4bad1f12b53103f85d30cadc12aba7;hp=7e327730a0d3f6f25144428712d62f1f1a6ab477;hb=ba447ec2175b15e3f9368c6dd18988215b36b84b;hpb=08d4b0b5273fa05983e1564d1aac464c56b70200 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];