2011-06-13 | Paul Boddie | file changeset files shortlog | Renamed LoadResult and StoreResult. Changed the RSVP machine instruction handlers to accept an operand directly; this should assist the direct usage of instructions in the RSVP library. Added a trivial assignment test. |
paul@130 | 1 | #!/usr/bin/env python |
paul@130 | 2 | |
paul@130 | 3 | a = 1 |
paul@130 | 4 | b = 0 |
paul@130 | 5 | e = a and b or not a and not b |
paul@130 | 6 | |
paul@244 | 7 | if e is False: |
paul@244 | 8 | f = 0 |
paul@244 | 9 | else: |
paul@244 | 10 | f = 1 |
paul@244 | 11 | |
paul@244 | 12 | e = a and b or a and not b |
paul@244 | 13 | |
paul@244 | 14 | if e is False: |
paul@244 | 15 | g = 0 |
paul@244 | 16 | else: |
paul@244 | 17 | g = 1 |
paul@244 | 18 | |
paul@244 | 19 | result_0 = f |
paul@244 | 20 | result_1 = g |
paul@244 | 21 | |
paul@130 | 22 | # vim: tabstop=4 expandtab shiftwidth=4 |