From 1c3d9abadf2d0e932bd374ed307a3865b7bf5ff9 Mon Sep 17 00:00:00 2001 From: Evian-Zhang Date: Wed, 24 Jul 2024 14:48:37 +0800 Subject: [PATCH] Fix typo --- README.md | 4 ++-- docs/README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 302eac3..735eb07 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ do_something: Although the `if`-check is just `test`-`jnz` instructions, it can still be speedup. What about making the check just a `jmp` (skip over the `do_something` branch) or `nop` (always `do_something`)? This is what static keys do. To put it simply, we **modify** the instruction at runtime. After getting the `flag` passed from commandline, we dynamically modify the `if flag {}` check to be a `jmp` or `nop` according to the `flag` value. -For example, if user-specified `flag` is `true`, the assembled instructions will be **dynamically modified** to the following `nop` instruction. +For example, if user-specified `flag` is `false`, the assembled instructions will be **dynamically modified** to the following `nop` instruction. ```x86asm nop DWORD PTR [rax+rax*1+0x0] @@ -43,7 +43,7 @@ do_something: jmp do_common_routines ``` -If user-specified `flag` is `false`, then we will dynamically modify the instruction to an unconditional jump instruction: +If user-specified `flag` is `true`, then we will dynamically modify the instruction to an unconditional jump instruction: ```x86asm jmp do_something diff --git a/docs/README.md b/docs/README.md index 4e8ab34..db7697e 100644 --- a/docs/README.md +++ b/docs/README.md @@ -31,7 +31,7 @@ do_something: Although the `if`-check is just `test`-`jnz` instructions, it can still be speedup. What about making the check just a `jmp` (skip over the `do_something` branch) or `nop` (always `do_something`)? This is what static keys do. To put it simply, we **modify** the instruction at runtime. After getting the `flag` passed from commandline, we dynamically modify the `if flag {}` check to be a `jmp` or `nop` according to the `flag` value. -For example, if user-specified `flag` is `true`, the assembled instructions will be **dynamically modified** to the following `nop` instruction. +For example, if user-specified `flag` is `false`, the assembled instructions will be **dynamically modified** to the following `nop` instruction. ```x86asm nop DWORD PTR [rax+rax*1+0x0] @@ -43,7 +43,7 @@ do_something: jmp do_common_routines ``` -If user-specified `flag` is `false`, then we will dynamically modify the instruction to an unconditional jump instruction: +If user-specified `flag` is `true`, then we will dynamically modify the instruction to an unconditional jump instruction: ```x86asm jmp do_something