| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| 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 --- > ]* 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™.