Link to home
Start Free TrialLog in
Avatar of smondrag
smondrag

asked on

Data displayed as stored in memory

I need to know how to display the data of stack stored in memory. that means, display how the memory keeps the information.
Avatar of smondrag
smondrag

ASKER

Adjusted points to 150
 Do you mean you want to get values from memory or you want to list all program in memory ?
smnondrag, I don't exactly udnerstand what your question is.. WOuld you pleas elaborate a bit more what it is that you need? Thank you!

-Viktor
--Ivanov
"Stack" as in an "abstract data type", or literally the program stack?
you can view variables as stored in memory by doing this

var
 i:integer;
begin
  i:=3;
  Writeln(Mem[Seg(i):Ofs(i)],' ',Mem[Seg(i):ofs(i)+1);
  readln;
end.
Motaz
ASKER CERTIFIED SOLUTION
Avatar of Hypo
Hypo
Flag of Sweden image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial