1.1 --- a/micropython/rsvp.py Sun Apr 27 03:11:12 2008 +0200
1.2 +++ b/micropython/rsvp.py Sun Apr 27 21:05:55 2008 +0200
1.3 @@ -26,7 +26,6 @@
1.4 "A generic instruction."
1.5
1.6 stack_usage = 0
1.7 - stack_temp_usage = 0
1.8
1.9 def __init__(self, attr=None):
1.10 self.attr = attr
1.11 @@ -111,18 +110,6 @@
1.12
1.13 stack_usage = -2
1.14
1.15 -class TempAdd:
1.16 -
1.17 - "Indicate that one more temporary storage location is now required."
1.18 -
1.19 - stack_temp_usage = 1
1.20 -
1.21 -class TempRemove:
1.22 -
1.23 - "Indicate that one fewer temporary storage location is now required."
1.24 -
1.25 - stack_temp_usage = -1
1.26 -
1.27 # Instructions operating on the value stack.
1.28
1.29 class LoadConst(StackAdd, Address): "Load the constant from the specified location."
1.30 @@ -133,8 +120,8 @@
1.31
1.32 class LoadName(StackAdd, SR): "Load the object from the given local attribute/variable."
1.33 class StoreName(StackRemove, SR): "Store the object in the given local attribute/variable."
1.34 -class LoadTemp(TempAdd, SR): "Load the object from the given temporary location."
1.35 -class StoreTemp(SR): "Store the object in the given temporary location."
1.36 +class LoadTemp(Immediate): "Load the object from the given temporary location."
1.37 +class StoreTemp(Immediate): "Store the object in the given temporary location."
1.38
1.39 # Access to address-relative data.
1.40