Re:History of Null Pointer Dereferences on macOS
by 0x0 on Friday March 21, 2025 @07:15AM
(#43434279)
Probably because the 6502 CPU had instructions for optimized access to the zero page (first 256 bytes of RAM), this would also apply to C64 and NES etc. If you want to use "Indirect Indexed" memory accesses then I think it also has to go through an address held in the zero page.
Re:History of Null Pointer Dereferences on macOS
by pajko on Friday March 21, 2025 @04:17PM
(#43440352)
The AVR architecture puts its registers starting from address 0 of its data memory. As a twist, the program memory also starts at 0 (due to the Harvard architecture).
See https://www.nesdev.org/obelisk-6502-guide/addressing.html