Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
SairajK19
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
SairajK19
3y ago
Yes, seems like you can easily run out of stack with 256 bytes. Maybe they used their own secondary stack along with the hardware stack. I wonder how big is modern 64bit cpu stack.
2.
▲
by
SairajK19
3y ago
Okay I get it now, upper 8bit always hard wired to be 0x01 which is also why lies in page 1. The stack pointer deals with lower 8bits from 00 to FF. Many thanks!
3.
▲
by
SairajK19
3y ago
That explains it well, thankyou!
4.
▲
by
SairajK19
3y ago
Thankyou,So this means the cpu outputs data into the upper 8bits of the address and the stack pointer points to the lower 8bits? So for example if the current top of the stack is 0x01FF then then SP will store FF, which being upper 8 bits o
5.
▲
Ask HN: How does 6502 stack pointer store addr 0x10FF being an 8bit register
1 points
by
SairajK19
3y ago
|
9 comments
6.
▲
by
SairajK19
3y ago
That explains it well. It's the number of pointers that a 4KiB block can hold. I got it. Many thanks.
7.
▲
by
SairajK19
3y ago
Hi, I did not understand the arithmetic behind indirect pointers and the file size it can store. It says "A single indirect pointer can point - (12 + 1024) * 4 KiB" that is 4MiB file. My question is, what does 1024 represent. I un