Ain't working..

by Lisztfr (no login)

 

http://www.petesqbsite.com/sections/tutorials/tuts/memory.htm

CLS
n = 10049

Address = VARSEG(n) 'Get n's memory location.

DEF SEG = Address 'Add DEF SEG to the example

PRINT CVI(CHR$(PEEK(Address)) + CHR$(PEEK(Address + 1)))

=========

The other examples are Ok, but not this one. Also i may need the offset :

CLS
n = 10049

Address = VARSEG(n) 'Get n's memory location. (or segment ?)
offset = VARTPR(n) 'Get the offset

DEF SEG = Address ' Go to segment

PRINT CVI(CHR$(PEEK(Address + offset)) + CHR$(PEEK(Address + offset + 1)))

But i don't feel it's working...

if i set only the offset it's not Ok too !

There is also a VARTPR$ which returns a string with lots of info....

Posted on Apr 20, 2010, 3:03 AM

Respond to this message   

Return to Index

Response TitleAuthor and Date
Don't mix segments and offsetsArtelius on Apr 20
 Does it make sens ?Lisztfr on Apr 20
  Because it's a floating point numberBen on Apr 20
   Ok !Lisztfr on Apr 20
    * Place the asterisks IN the empty message titles you two!Clippy on Apr 20

 Copyright © 1999-2014 Network54. All rights reserved.   Terms of Use   Privacy Statement