Re: A92: BSS


[Prev][Next][Index][Thread]

Re: A92: BSS




At 08:45 PM 3/25/98 +0100, Famille SCHERRER wrote:
>So in the BBS section, can I put :
>
>screen	dcb.b	3840,0
>
>if I want that Fargo creates a new buffer for saving the screen ??
>(So I don't need to call HeapAlloc and HeapFree.)

Yes. If you do that, the buffer will be allocated before the program is
run, and deallocated after it is finished, automatically. However it is
more logical to do it this way:

screen  ds.b    3840

Yes, in some of my source code it still uses "dcb", but that's because I
was quickly converting my programs to use BSS and didn't take the time to
change "dcb" to "ds". I'll do that for the next version. :)

---
David Ellsworth
davidell@earthling.net
IRC: eXocomp
ICQ: 2300673


References: