diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-09-04 12:05:45 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-09-04 12:05:45 +0200 |
| commit | 1ed45ec50fc393c49e3d4b65772419e6b7c42467 (patch) | |
| tree | f48f972ee4b999f40c8650d0f9b5c69cbcb9c557 /crates | |
| parent | 14c8f64f38b601398a144d507c0183016d27b87c (diff) | |
| download | tools.nes-1ed45ec50fc393c49e3d4b65772419e6b7c42467.tar.gz tools.nes-1ed45ec50fc393c49e3d4b65772419e6b7c42467.zip | |
Update README on asan:ignore also affecting instructions
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/nasm/README.md | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/crates/nasm/README.md b/crates/nasm/README.md index 5e2fa69..4b4cf50 100644 --- a/crates/nasm/README.md +++ b/crates/nasm/README.md @@ -112,21 +112,18 @@ zp_bad = $22 ; NOTE: The address sanitizer will mark it as a *conflict*. If you want to ignore this (e.g. you are using a variable that shadows other ones), then you can explicitely tell the address sanitizer to ignore a given -assignment: +assignment or instruction: ```asm zp_buffer = $20 ; asan:reserve $0F zp_good = $22 ; asan:ignore +lda $200 ; asan:ignore ``` -TODO: NOTE asan:ignore also takes care of lda $200 ; asan:ignore - - - -In order for the address sanitizer to be successful, it will warn programmers -whenever an access to memory is being done without using variables. This allows -for the address sanitizer to be more thorough, even if there is never the -guarantee that memory accesses will be safe. For example: +That is, in order for the address sanitizer to be successful, it will also warn +programmers whenever an access to memory is being done without using +variables. This allows for the address sanitizer to be more thorough, even if +there is never the guarantee that memory accesses will be safe. For example: ```asm zp_variable = $20 |
