Article View: comp.lang.modula2
Article #125Absolute variable addresses.
From: "THE DOCTOR."
Date: Wed, 14 Jun 1989 22:31
Date: Wed, 14 Jun 1989 22:31
24 lines
1451 bytes
1451 bytes
re: Absolute Addresses
Variables are allowed to be given absolute addresses for the
purpose of accessing specific IO addresses. This is highly
system specific, so I wouldn't expect modules using this feature
to be ported from one system to another. Therefore, I would
think you ( the language implementor ) could put whatever was
appropriate for your implementation between the brackets. For
instance, on PC's [0000:0001] would be an appropriate address
form.
IO Ports are sometimes thought of as a separate address space, so
I think [IO0003] might be appropriate. In practice, most
compilers seem to provide separate procedures for dealing with
ports, usually in the system module.
I don't think you would be violating the language, or making it
non-standard if you allowed variables to have addresses in the IO
space.
Tom Ruby
MSRS002@ECNCDC
No disclaimers, I freely admit to my guilt.
Technical Details
Message-ID:
<INFO-M2%89061418330193@UCF1VM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!ECNCDC.BITNET!MSRS002Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!ECNCDC.BITNET!MSRS002
From: MSRS002@ECNCDC.BITNET ("THE DOCTOR.")
Newsgroups: comp.lang.modula2
Subject: Absolute variable addresses.
Message-ID: <INFO-M2%89061418330193@UCF1VM>
Date: 14 Jun 89 22:31:00 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Reply-To: Modula2 List <INFO-M2%UCF1VM.bitnet@jade.berkeley.edu>
Organization: The Internet
Lines: 24