diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-10-25 05:54:06 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-10-25 06:10:36 -0700 |
commit | f0b7e327c5e612ea2f72f2e41c046a2105076654 (patch) | |
tree | b598dfdfb31a748634302b6f336aebd356fe372d /apps/assort.subx | |
parent | 76599bb813970f09ddd27d476f5b62be9bf97d4d (diff) | |
download | mu-f0b7e327c5e612ea2f72f2e41c046a2105076654.tar.gz |
5714
Replace calculations of constants with labels.
Diffstat (limited to 'apps/assort.subx')
-rw-r--r-- | apps/assort.subx | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/apps/assort.subx b/apps/assort.subx index 1e546f49..c423bc14 100644 --- a/apps/assort.subx +++ b/apps/assort.subx @@ -168,11 +168,9 @@ test-subx-assort: e8/call clear-stream/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 4/imm32 # add to esp - # . clear-stream(_test-input-buffered-file+4) + # . clear-stream(_test-input-buffered-file->buffer) # . . push args - b8/copy-to-eax _test-input-buffered-file/imm32 - 05/add-to-eax 4/imm32 - 50/push-eax + 68/push _test-input-buffered-file->buffer/imm32 # . . call e8/call clear-stream/disp32 # . . discard args @@ -184,11 +182,9 @@ test-subx-assort: e8/call clear-stream/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 4/imm32 # add to esp - # . clear-stream(_test-output-buffered-file+4) + # . clear-stream(_test-output-buffered-file->buffer) # . . push args - b8/copy-to-eax _test-output-buffered-file/imm32 - 05/add-to-eax 4/imm32 - 50/push-eax + 68/push _test-output-buffered-file->buffer/imm32 # . . call e8/call clear-stream/disp32 # . . discard args @@ -628,11 +624,9 @@ $read-segments:check-for-segment-header: #? e8/call write/disp32 #? # . . discard args #? 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 8/imm32 # add to esp -#? # . clear-stream(Stderr+4) +#? # . clear-stream(Stderr->buffer) #? # . . push args -#? b8/copy-to-eax Stderr/imm32 -#? 05/add-to-eax 4/imm32 -#? 50/push-eax +#? 68/push Stderr->buffer/imm32 #? # . . call #? e8/call clear-stream/disp32 #? # . . discard args @@ -690,11 +684,9 @@ $read-segments:check-for-segment-header: #? e8/call write/disp32 #? # . . discard args #? 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 8/imm32 # add to esp -#? # . clear-stream(Stderr+4) +#? # . clear-stream(Stderr->buffer) #? # . . push args -#? b8/copy-to-eax Stderr/imm32 -#? 05/add-to-eax 4/imm32 -#? 50/push-eax +#? 68/push Stderr->buffer/imm32 #? # . . call #? e8/call clear-stream/disp32 #? # . . discard args |