home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!mucs!nessie!db.mcc.ac.uk!zlsiida
- From: zlsiida@fs1.mcc.ac.uk (dave budd)
- Newsgroups: comp.lang.pascal
- Subject: Re: Turbo Pascal mem[a:b] question
- Message-ID: <zlsiida.418@fs1.mcc.ac.uk>
- Date: 13 Nov 92 12:32:31 GMT
- References: <zlsiida.414@fs1.mcc.ac.uk>
- Sender: news@nessie.mcc.ac.uk (Usenet News System)
- Organization: Manchester Computing Centre
- Lines: 23
-
- In article <zlsiida.414@fs1.mcc.ac.uk> zlsiida@fs1.mcc.ac.uk (dave budd) writes:
-
- >One of our users claims he can increase a in mem[a:b]:=value; until it MUST
- >be off the end of his machine. This is the kind of user who always forgets
- >to bring a disk with the program on it. I've had a brief scan of the manual
- >and it's not clear to me just exactly which bits of memory get addressed -
- >eg I don't believe they'd let you write into a program segment.
- >Are all the addresses relative to the start of the data segment (or
- >something along those lines)?
- >If the address is off the end of the machine or just bigger than the largest
- >allowable, does it get truncated in some way?
- >Anybody want to give me a nice simple explanation of how mem[a:b] works?
-
- After a little experimentation, it looks like it really does let you write
- anywhere in memory at all. It was never like this on mainframes!
- And I've found the memory map that shows the variable heapend holds the
- address of the end of your machine - is it really true that you can write
- past this address without generating an error, as my user claims?
-
- Practice random kindness and senseless acts of beauty
-
- Dave Budd, MCC, Oxford Rd, Manchester, England (44|0)61-275-6033
- D.Budd@mcc.ac.uk fax 6040
-