<feed xmlns='http://www.w3.org/2005/Atom'>
<title>tools.nes/tests/bare_accesses.s, branch main</title>
<subtitle>Tools for NES/Famicom development.
</subtitle>
<id>https://git.mssola.com/nes/tools.nes/atom?h=main</id>
<link rel='self' href='https://git.mssola.com/nes/tools.nes/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.mssola.com/nes/tools.nes/'/>
<updated>2026-04-08T14:04:12Z</updated>
<entry>
<title>Implement the asan:stack statement</title>
<updated>2026-04-08T14:04:12Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mssola@mssola.com</email>
</author>
<published>2026-04-08T14:04:12Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/nes/tools.nes/commit/?id=a2cb050ca18fd7c5533d69e9aa093e4f0a40d0fa'/>
<id>urn:sha1:a2cb050ca18fd7c5533d69e9aa093e4f0a40d0fa</id>
<content type='text'>
This statement allows programmers to reserve a memory range for the
stack. This is useful to reserve a memory region which is not attached
to any variable, and:

1. It is a way to safely reserve space on the $0100 page.
2. The --stats/--write-info flags will be able to add up the memory
   space reserved for the stack.
3. Future tooling might be able to use this value as a way to detect
   stack overflows.

Signed-off-by: Miquel Sabaté Solà &lt;mssola@mssola.com&gt;
</content>
</entry>
<entry>
<title>asan: don't complain on arithmetic with addresses</title>
<updated>2026-02-06T13:05:37Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mssola@mssola.com</email>
</author>
<published>2026-02-05T17:53:20Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/nes/tools.nes/commit/?id=6894b01b22e848b5fdbb2fafae88e9459232ced2'/>
<id>urn:sha1:6894b01b22e848b5fdbb2fafae88e9459232ced2</id>
<content type='text'>
This was already the case for plain addresses, but it was not being
considered in the case of an arithmetic operation.

Signed-off-by: Miquel Sabaté Solà &lt;mssola@mssola.com&gt;
</content>
</entry>
<entry>
<title>asan: Add fixes on absolute/indirect addressing</title>
<updated>2025-09-03T21:16:54Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2025-09-03T21:16:54Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/nes/tools.nes/commit/?id=90fecaa84ff317e30c3339d3edb17b13211e3e64'/>
<id>urn:sha1:90fecaa84ff317e30c3339d3edb17b13211e3e64</id>
<content type='text'>
The check was not being applied on certain conditions.

Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
<entry>
<title>Apply asan:ignore also when bundling</title>
<updated>2025-09-03T20:40:38Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2025-09-03T20:40:38Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/nes/tools.nes/commit/?id=112d5a7f51ea8f4d16b15032b2bdc5b9888d9372'/>
<id>urn:sha1:112d5a7f51ea8f4d16b15032b2bdc5b9888d9372</id>
<content type='text'>
This way instructions which might make use of bare memory numbers can
freely ignore the address sanitizer when it actually makes sense.

Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
<entry>
<title>Validate that memory access is done via variables</title>
<updated>2025-09-03T18:45:54Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2025-09-03T17:08:05Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/nes/tools.nes/commit/?id=9dcbf460ff692c049e4d327afcbdbc39ba4e8c65'/>
<id>urn:sha1:9dcbf460ff692c049e4d327afcbdbc39ba4e8c65</id>
<content type='text'>
The address sanitizer is now able to detect whenever in an instruction a
memory access is done without using variables. This is now detected for
all instructions except for branching, which falls outside of this
scope.

Moreover, simple arithmetics is allowed and bounds are checked for
simple cases. That being said, more involved bound checks should be done
with other tools (e.g. emulators).

Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
</feed>
