TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: ALL
from: KROGG
date: 1998-03-10 19:44:00
subject: dim absolute:help.

From: Krogg 
Subject: dim absolute:help.
 
Help,
How can i tell if a segment is "safe" to use with the DIM ABSOLUTE
statement?For example,in this line:
"DIM ABSOLUTE scrn(319,199) as byte at &ha000"
I get a nice 320x200 array that overlays the video buffer for vga
mode 13h.Great trick,i love it.But the real thing to do with
DIM ABSOLUTE is to store lots of data directly.how can i do this?I dont know
what segments will be safe to use.Is there some easy way to find
unused segments during runtime?What should i do?Any help or pointers to
information would be great.
                  Thanks,
ps:I havent tried this yet so i will ask.Can 2 arrays share memory
locations?like this:
DIM ABSOLUTE scrn(319,199) as byte at &ha000
DIM ABSOLUTE flop(319,199) as byte at &ha000.
I know they will overlap,but is it legal in PB?
 
--
              [wicked skull sig]
         krogg.no.to.spam@inspace.net
          Remove no.to.spam to reply
 http://www.inspace.net/~carcher/krogg/aani.htm
  Gory javascript animations for your enjoyment
 
*** QwkNews (tm) v2.1
 * [TN71] Toast House Import
--- GEcho 1.20/Pro
---------------
* Origin: Toast House Remote (1:100/561)

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™.