??? 03/21/05 11:27 Read: times |
#90095 - very old assemblers only Responding to: ???'s previous message |
If you have a very old assembler, which not support different segments (data, code), then you must place variables and stack absolute.
But on most assembler you can easy place all needed variables into the data segment and the stack on the top of them. There is absolutely no reason for absolute positioning, if your assembler support the data segment ! On most projects I define the size of the stack as 16 byte. Then if the data segment exceed the 128 byte (8051) or 256 byte (8052) limit I get an error message and I must reduce the stack or the count of variables. But on absolute positioning you get never an error, if any variable or the stack overlap another. You get only weird behaviour of your application. Thus absolute positioning should be avoided in general. Thus fixed location of the stack at 07Fh was a bad suggestion. Peter |
Topic | Author | Date |
initializing SP to 7FH | 01/01/70 00:00 | |
why? | 01/01/70 00:00 | |
To Oleg & Russell | 01/01/70 00:00 | |
To Mehdi | 01/01/70 00:00 | |
To Mehdi | 01/01/70 00:00 | |
why not | 01/01/70 00:00 | |
for example, please | 01/01/70 00:00 | |
Oleg, why I do similar | 01/01/70 00:00 | |
here they are | 01/01/70 00:00 | |
well | 01/01/70 00:00 | |
well well | 01/01/70 00:00 | |
well, well - done | 01/01/70 00:00 | |
tight SRAM - use C | 01/01/70 00:00 | |
- or assembler![]() | 01/01/70 00:00 | |
Stack pointer | 01/01/70 00:00 | |
external stack | 01/01/70 00:00 | |
why not? | 01/01/70 00:00 | |
SDCC | 01/01/70 00:00 | |
Re:initializing SP to 7FH | 01/01/70 00:00 | |
very old assemblers only | 01/01/70 00:00 | |
Let the assembler do the work! | 01/01/70 00:00 |