Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/26/06 21:56
Read: times


 
#123113 - Stack of names and STACK
Responding to: ???'s previous message
Dear Members,
Joseph Herbert said
"...I would have probably realized that "The Tran" is a shortened form of a Vietnamese name."
Thelam Tran Nguten said
"....They either called me Thelma (a girl's name)..."

Joseph,in case you care,the word 'Tran' must have been derived from Sanskrit Tran,which normally means 'releif'(from pain etc.) but here used after a girls(Goddess'es?) name to mean in a 'compound sense'
'savier of Lady/Goddes Thelma';hence a masculine name.
Stack allocation:
BSEG AT 20H
flagone bit 1
......
Bit variables are allocated at and after address 20H but upto 29H;so we can have 80 bit variables(flags) at maximum.
DSEG AT 30H
VARONE: DS 1
...
STACK:
Data segment starts at 30h.I rserve Stack in this space.But first I reserve space for my byte variables.
Rest of the whole memory area upto 7FH then can be used
as stack.Then the stack pointer is loaded with the address of the variable stack.
MOV SP,#STACK
The last line is invariably the the first line of all my assembly codes.
But for µVision2 startup.a51, I can quote the following from one successfull compilation
;------------------------------------------------------------------------------
;
; Reentrant Stack Initilization
;
; The following EQU statements define the stack pointer for reentrant
; functions and initialized it:
;
; Stack Space for reentrant functions in the SMALL model.
IBPSTACK EQU 0 ; set to 1 if small reentrant is used.
IBPSTACKTOP EQU 0FFH+1 ; set top of stack to highest location+1.
;
; Stack Space for reentrant functions in the LARGE model.
XBPSTACK EQU 0 ; set to 1 if large reentrant is used.
XBPSTACKTOP EQU 0FFFFH+1; set top of stack to highest location+1.
;
; Stack Space for reentrant functions in the COMPACT model.
PBPSTACK EQU 0 ; set to 1 if compact reentrant is used.
PBPSTACKTOP EQU 0FFFFH+1; set top of stack to highest location+1.
;----------------------------------------------------------------------------
The above was for AT89C2051 and demo version.
I remember there are cases where I may not opt the automatic startup.a51,I am new in C51 so not very sure.
But it will depend on the µcontroller,version and so on.
Regards
A.S.Rudra

List of 13 messages in thread
TopicAuthorDate
What does this mean?            01/01/70 00:00      
   Not Equal To            01/01/70 00:00      
      Not Equal to            01/01/70 00:00      
   Manual.            01/01/70 00:00      
      Not Equal to            01/01/70 00:00      
   SP and STACK            01/01/70 00:00      
   Stack            01/01/70 00:00      
      Sorry            01/01/70 00:00      
         Stack of names and STACK            01/01/70 00:00      
         notation            01/01/70 00:00      
            Stack            01/01/70 00:00      
               yes and no and no            01/01/70 00:00      
                  Stack            01/01/70 00:00      

Back to Subject List