git @ Cat's Eye Technologies ZOWIE / 145ea6d
Merge branch 'master' into implement-in-haskell Chris Pressey 1 year, 18 days ago
1 changed file(s) with 39 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
7575 | MOV R[R12], 65
7676 | MOV R0, R11
7777 = A
78
79 Commit a transaction.
80
81 | MOV R10, 65
82 | MOV R1, 1
83 | MOV R10, 66
84 | MOV R2, 1
85 | MOV R0, R10
86 = B
87
88 Rollback a transaction.
89
90 | MOV R10, 65
91 | MOV R1, 1
92 | MOV R10, 66
93 | MOV R2, 0
94 | MOV R0, R10
95 = A
96
97 Commit (but do not repeat) a transaction.
98
99 | MOV R10, 65
100 | MOV R1, 1
101 | MOV R10, 66
102 | MOV R3, 0
103 | MOV R0, R10
104 = B
105
106 Commit and repeat a transaction.
107
108 | MOV R10, 65
109 | MOV R11, 1
110 | MOV R12, 0
111 | MOV R1, 1 ; begin the transaction
112 | MOV R17, R11
113 | MOV R11, R12
114 | MOV R3, R17 ; the first time, R17 will have 1; the second, 0
115 | MOV R0, R10
116 = A