Organization: FidoNet node 2:291/702.10 - In Limbo, Lennik B
Lines: 36
Hello HON,
In a msg of <12 Dec 92>, HON (EDWIN writes to All:
>> location: ADDRESS;
>> BEGIN
>> IF empty(s) THEN
>> stackunderflow
>> ELSE
>> size := s^.size;
>> oldnode := s^.next;
>> location := oldnode^.contents;
>> FOR wordcount := 0 TO size DIV TSIZE(WORD) - 1 DO
>> item[wordcount] := location^;
>> INC(location, TSIZE(WORD));
H(> ^^^^^^
H(> parameter not correct type ??
H(> Is this some problem ...???
H(> I am using TopSpeed Modular-2.
H(> Can anybody help ??
"location" is of TYPE "ADDRESS". Addresses in the large models are composed of a segment and an offset part, at least if you're using an Intel processor compiler, like the TopSpeed one. Since INC only works on ordinal types in general, it won't work on a structured type like ADDRESS, which is a record composed of the two CARDINALs "Segment" and "Offset". The TopSpeed library provides you with the necessary procedures to do all the address arithmetic you need, though.