diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-03-07 21:05:45 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-03-07 21:05:45 -0800 |
commit | de7713d97470528ee47031f64446d45555ee7a10 (patch) | |
tree | c8c1e0ad7ca220d062c544cbb673c80c7934a83f /linux/tests.subx | |
parent | 1a1a1671edd8d27cdd6229c08e6b40a202d85740 (diff) | |
download | mu-de7713d97470528ee47031f64446d45555ee7a10.tar.gz |
7867
Diffstat (limited to 'linux/tests.subx')
-rw-r--r-- | linux/tests.subx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linux/tests.subx b/linux/tests.subx index 543e488d..63d64194 100644 --- a/linux/tests.subx +++ b/linux/tests.subx @@ -82,7 +82,7 @@ subx-gen-run-tests: # in: (addr buffered-file), out: (addr buffered-file) # var word-slice = next-word(line) # if slice-empty?(word-slice) # empty line # continue - # if is-label?(word-slice) + # if label?(word-slice) # if slice-starts-with?(word-slice, "test-") # tests-found = true # write(new-code-segment, " e8/call ") @@ -197,12 +197,12 @@ $subx-gen-run-tests:check-empty: 3d/compare-eax-and 0/imm32/false 75/jump-if-!= $subx-gen-run-tests:loop/disp8 $subx-gen-run-tests:check-for-label: - # if (!is-label?(word-slice)) continue - # . eax = is-label?(word-slice) + # if (!label?(word-slice)) continue + # . eax = label?(word-slice) # . . push args 52/push-edx # . . call - e8/call is-label?/disp32 + e8/call label?/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 4/imm32 # add to esp # . if (eax == false) continue |