Subject:
|
RE: legOS ... really a stack question
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Sun, 3 Jan 1999 00:55:52 GMT
|
Original-From:
|
John A. Tamplin <jat@Traveller#nomorespam#.COM>
|
Viewed:
|
1372 times
|
| |
![Post a public reply to this message](/news/icon-reply.gif) | |
On Sat, 2 Jan 1999, Allen Martin wrote:
> > One problem I noticed with LegOS is that it does not zero the .bss
> > section, which I believe contains uninitialized global data.
>
> .bss also contains global data initialized to 0, which is even worse if it's
> not cleared.
Good point, I will add the code to clear it to my crt0.s before calling
constructors:
mov.w #__bss,r2
mov.w #__end,r3
sub.b r0l,r0l
cmp.w r3,r2
bhs .Lbss_done
.Lmore_bss:
mov.b r0l,@r2
adds #1,r2
cmp.w r3,r2
blo .Lmore_bss
.Lbss_done:
...
John A. Tamplin Traveller Information Services
jat@Traveller.COM 2104 West Ferry Way
256/705-7007 - FAX 256/705-7100 Huntsville, AL 35801
--
Did you check the web site first?: http://www.crynwr.com/lego-robotics
|
|
Message is in Reply To:
10 Messages in This Thread: ![legOS ... really a stack question -Rick Kimball (2-Jan-99 to lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![Re: legOS ... really a stack question -lego-robotics@crynwr.com (Ben Laurie) (2-Jan-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: legOS ... really a stack question -Kekoa Proudfoot (2-Jan-99 to lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![RE: legOS ... really a stack question -lego-robotics@crynwr.com (Allen Martin) (2-Jan-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![You are here](/news/here.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: legOS ... really a stack question -lego-robotics@crynwr.com (Ben Laurie) (3-Jan-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: legOS ... really a stack question -Kekoa Proudfoot (4-Jan-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: legOS ... really a stack question -lego-robotics@crynwr.com (Ben Laurie) (5-Jan-99 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/268.gif) ![Re: legOS ... really a stack question -Kekoa Proudfoot (2-Jan-99 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/68.gif) ![Re: legOS ... really a stack question -lego-robotics@crynwr.com (John A. Tamplin) (3-Jan-99 to lugnet.robotics)](/news/x.gif)
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|