From 679b25a874d2dc2b12781c340f4eb58de8247e91 Mon Sep 17 00:00:00 2001 From: Loic GUEGAN Date: Fri, 31 Aug 2018 20:11:10 +0200 Subject: Clean code and add extras instructions --- components/ram.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'components/ram.py') diff --git a/components/ram.py b/components/ram.py index c6d05bb..d503929 100644 --- a/components/ram.py +++ b/components/ram.py @@ -52,13 +52,11 @@ class Ram: return(value) def dump(self): - print("------- RAM --------") for key,value in self.data.items(): #print("{}:{}".format(key,bin(value)[2:])) print("{}:{}".format(key,value)) - print("--------------------") - def dump(self,start,end): + def dumpRange(self,start,end): for i in range(start,end+1): try: print("{}:{}".format(i,self.data[i])) -- cgit v1.2.3