1.1 --- a/micropython/rsvp.py Mon Apr 21 00:35:18 2008 +0200
1.2 +++ b/micropython/rsvp.py Sat Apr 26 02:31:44 2008 +0200
1.3 @@ -67,18 +67,27 @@
1.4
1.5 AR = AddressRelativeInstruction
1.6
1.7 -class ImmediateInstruction(Instruction):
1.8 +class AddressInstruction(Instruction):
1.9
1.10 "An instruction loading an address directly."
1.11
1.12 def __repr__(self):
1.13 return "%s(%r)" % (self.__class__.__name__, self.attr.location)
1.14
1.15 +Address = AddressInstruction
1.16 +
1.17 +class ImmediateInstruction(Instruction):
1.18 +
1.19 + "An instruction employing a constant."
1.20 +
1.21 + def __repr__(self):
1.22 + return "%s(%r)" % (self.__class__.__name__, self.attr)
1.23 +
1.24 Immediate = ImmediateInstruction
1.25
1.26 # Instructions operating on the value stack.
1.27
1.28 -class LoadConst(Immediate): "Load the constant from the specified location."
1.29 +class LoadConst(Address): "Load the constant from the specified location."
1.30 class Duplicate(Instruction): "Duplicate the top of stack."
1.31 class Pop(Instruction): "Pop the top of stack."
1.32