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.
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
-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
var
i:integer;
begin
i:=3;
Writeln(Mem[Seg(i):Ofs(i)]
readln;
end.
Motaz
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER