X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=client%2FGoodFET.py;h=b9c35e3adc4bad1f12b53103f85d30cadc12aba7;hb=757884d51cc6b119a3b1773873c446926b26011d;hp=8244aaac6790d0def4b9d0f2b86f54eb773d353d;hpb=b16927a85ac4a4c6f925a41bfeef04224f8581f9;p=goodfet diff --git a/client/GoodFET.py b/client/GoodFET.py index 8244aaa..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]; @@ -401,7 +404,6 @@ class GoodFET: def dump(self,file,start=0,stop=0xffff): """Dump an intel hex file from code memory.""" print "Dump not implemented."; - def peek32(self,address, memory="vn"): return (self.peek16(address,memory)+ (self.peek16(address+2,memory)<<16)); @@ -410,5 +412,8 @@ class GoodFET: (self.peek8(address+1,memory)<<8)); def peek8(self,address, memory="vn"): return self.peekbyte(address); #monitor + def peekword(self,address, memory="vn"): + return self.peek(address); #monitor + def loadsymbols(self): return;