05-25-2003, 03:48 AM
by referring a segment and offset from that segment. A "memory segment" is a contiguous group of 16 bytes, starting at segment 0--the beginning of memory. Once you specify a segment, the memory location is further specified by the number of bytes from the beginning of that segment. That number of bytes is called the "offset". In QB, the segment you need to access is pointed to by DEF SEG. When you say, for example,
DEF SEG = &HA000
you're telling your program that any offsets specified after that are to be counted from that segment (and like segments, offsets begin at 0).
DEF SEG = &HA000
you're telling your program that any offsets specified after that are to be counted from that segment (and like segments, offsets begin at 0).
ravelling Curmudgeon
(geocities sites require copying and pasting URLs.)
I liked spam better when it was something that came in a can.
Windows should be defenestrated.
(geocities sites require copying and pasting URLs.)
I liked spam better when it was something that came in a can.
Windows should be defenestrated.