diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-12-29 13:36:06 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-12-29 13:36:06 -0800 |
commit | dd9ba09a7c74455f17afb515c377a217fa8be8bc (patch) | |
tree | bdeba01efd5c56d3ccf4df10750bd99087d1bb24 /subx/052kernel_string_equal.subx | |
parent | d762282438f603d47804be04cebf77d6137c2728 (diff) | |
download | mu-dd9ba09a7c74455f17afb515c377a217fa8be8bc.tar.gz |
4888
We only can't use rm32=5 when mod=0. Totally fine when it's mod=1.
Diffstat (limited to 'subx/052kernel_string_equal.subx')
-rw-r--r-- | subx/052kernel_string_equal.subx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/subx/052kernel_string_equal.subx b/subx/052kernel_string_equal.subx index 02284c20..f663f504 100644 --- a/subx/052kernel_string_equal.subx +++ b/subx/052kernel_string_equal.subx @@ -54,12 +54,12 @@ kernel-string-equal: # s : null-terminated ascii string, benchmark : length-pre # return *s1 == 0 # # initialize s into EDI - 8b/copy 1/mod/*+disp8 4/rm32/sib 5/base/EBP 4/index/none . 7/r32/EDI 8/disp8 . # copy *(EBP+8) to EDI + 8b/copy 1/mod/*+disp8 5/rm32/EBP . . . 7/r32/EDI 8/disp8 . # copy *(EBP+8) to EDI # initialize benchmark length n into EDX - 8b/copy 1/mod/*+disp8 4/rm32/sib 5/base/EBP 4/index/none . 2/r32/EDX 0xc/disp8 . # copy *(EBP+12) to EDX + 8b/copy 1/mod/*+disp8 5/rm32/EBP . . . 2/r32/EDX 0xc/disp8 . # copy *(EBP+12) to EDX 8b/copy 0/mod/indirect 2/rm32/EDX . . . 2/r32/EDX . . # copy *EDX to EDX # initialize benchmark data into ESI - 8b/copy 1/mod/*+disp8 4/rm32/sib 5/base/EBP 4/index/none . 6/r32/ESI 0xc/disp8 . # copy *(EBP+12) to ESI + 8b/copy 1/mod/*+disp8 5/rm32/EBP . . . 6/r32/ESI 0xc/disp8 . # copy *(EBP+12) to ESI 81 0/subop/add 3/mod/direct 6/rm32/ESI . . . . . 4/imm32 # add to ESI # initialize loop counter i into ECX b9/copy-to-ECX 0/imm32/exit |