Question about the stack
pedward
Posts: 1,642
In the docs Chip wrote, he included these lines:
Now, is the bracket notation purely for convenience in expressing a concept, or does the compiler accept expressions such as:
mov foo, [SPA]
mov foo, SPA++
mov foo, SPA[15]
Meaning, can the stack be accessed like the PTR and IND pointers?
If so, what are the limits, +/-31 like PTR?
If I'm being let down, what is a more efficient table reference than:
setspa foo
popa foo
000011 ZC1 1 CCCC DDDDDDDDD 000011000 POPAR D 'read [SPA++] into D, MSB into C 1 000011 ZC1 1 CCCC DDDDDDDDD 000011001 POPBR D 'read [SPB++] into D, MSB into C 1
Now, is the bracket notation purely for convenience in expressing a concept, or does the compiler accept expressions such as:
mov foo, [SPA]
mov foo, SPA++
mov foo, SPA[15]
Meaning, can the stack be accessed like the PTR and IND pointers?
If so, what are the limits, +/-31 like PTR?
If I'm being let down, what is a more efficient table reference than:
setspa foo
popa foo
Comments
It is what I have on it.