TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: ALL
from: JAMES GOLDBLOOM
date: 1995-10-01 17:43:00
subject: MEMORY BUFFER

What is a safe region of memory to generally use for a 66k buffer I wish
to setup, where characters are poked right into memory?
Any suggestions or examples of creating a temporary buffer used to
later dump data to an array or to disk, etc.?
Thanks!
:-)
-James
--- QuickBBS 2.80 GoldBase (Zeta-1)
---------------
** A related thread FOLLOWS this message.

FIDO MESSAGE AREA==> TOPIC: 214 POWER BASIC   Ref: CEB02700 Date: 10/07/95
From: KURT KUZBA                                            Time: 12:45am
\/To: JAMES GOLDBLOOM                                     (Read 5 times)
Subj: R: MEMORY BUFFER

JG>   What is a safe region of memory to generally use for a
JG>   66k buffer I wish to setup, where characters are poked
JG>   right into memory? Any suggestions or examples of
JG>   creating a temporary buffer used to later dump data to
JG>   an array or to disk, etc.? Thanks!
jg>.........................................................
   Any area allocated to your application is safe.
Try running this short program as an example.
'_|_|   BUFALLOC.BAS
'_|_|   Example of allocating memory buffers in PowerBasic.
'_|_|   Released to the   Public Domain   by Kurt Kuzba
'_|_|
type buffer
   b as string * 1024
end type
dim HUGE buf(66) as buffer
bufseg = varseg(buf(0))
bufptr = varptr(buf(0))
for t% = 0 to 3999
   def seg = &HB800
   byt% = peek(t%)
   def seg = bufseg
   poke bufptr + t%, byt%
next
cls
for t% = 0 to 3999
   def seg = bufseg
   byt% = peek(bufptr + t%)
   def seg = &HB800
   poke t%, byt%
next

---
> ] Conspiracy? There's no conspiracy. Go ahead. Ask anyone.....

---------------
>>>>>>>>>>>>>>>>>>>>>> LAST Message In Thread <<<<<<<<<<<<<<<<<<<<<<

FIDO MESSAGE AREA==> TOPIC: 214 POWER BASIC   Ref: CE400000 Date: 10/02/95
From: STAN HELTON                                           Time: 10:43am
\/To: ANDY HAYES                                          (Read 3 times)
Subj: Re: SHELL in a window

 Andy wrote Dave about SHELL in a window 
 AH> Sorry to butt in, but I don't know a whole lot about PB.  Where's
 AH> their BBs, what's the #, and is it open for anyone thinking about
 AH> buying pB?
California. Sorry, I don't have it handy right now. PowerBASIC maintains
the BBS as a resource and support medium for their compiler products. 
If you don't know about PowerBASIC, you are missing the best DOS compiler
in the business! They monitor this ECHO, so you will probably receive a
response from them, also.
Stan Helton
... Alabama Rule #7: Never check for mistakes you can't fix
___ Blue Wave/QWK v2.12
--- PCBoard (R) v15.22/10 (09-28-95 13:
---------------
* Origin: AD Message BBS/10th Year Online! (703)998-2958 (1:109/611@FIDONET)
* Origin: ShadoeVision BBS (205)306-0486 (1:373/10)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.