We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
rerun
1 parent bddca4d commit 001848bCopy full SHA for 001848b
data/transactions/logic/assembler.go
@@ -1938,7 +1938,15 @@ type disassembleState struct {
1938
numericTargets bool
1939
labelCount int
1940
pendingLabels map[int]string
1941
- rerun bool
+
1942
+ // If we find a (back) jump to a label we did not generate
1943
+ // (because we didn't know about it yet), rerun is set to
1944
+ // true, and we make a second attempt to assemble once the
1945
+ // first attempt is done. The second attempt retains all the
1946
+ // labels found in the first pass. In effect, the first
1947
+ // attempt to assemble becomes a first-pass in a two-pass
1948
+ // assembly process that simply collects jump target labels.
1949
+ rerun bool
1950
1951
nextpc int
1952
err error
0 commit comments