Article View: comp.sys.atari.st
Article #33083Re: Memory Access in Modula 2
From: Douglas Wood
Date: Fri, 01 Jul 1988 19:25
Date: Fri, 01 Jul 1988 19:25
16 lines
1233 bytes
1233 bytes
In article <3188@druhi.ATT.COM> terrell@druhi.UUCP (TerrellE) writes: >Reading and writing from/to an absolute memory address in Modula 2: >I know of a "dirty trick" to accomplish this in Pascal, which will probably work >with Modula 2 as well. It's based on the fact that variant records >allow Pascal's normally strong typing to be circumvented. ... <delete more comments and small program> This is good, but there is one additional piece of information needed. The original poster asked to access location $4ab. One needs to be in supervisor mode to do that. In TDI Modula-2, one can not pass parameters to a superexec'ed procedures, they must be global to the procedure. But, essentially, all that is needed is to peek and poke while in supervisor mode with a structure essentially as written by terrel. ames!esl!dew
Technical Details
Message-ID:
<728@esl.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!uwvax!oddjob!ncar!gatech!purdue!decwrl!hplabs!cae780!leadsv!esl!dewReferences:
<3188@druhi.ATT.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!uwvax!oddjob!ncar!gatech!purdue!decwrl!hplabs!cae780!leadsv!esl!dew From: dew@esl.UUCP (Douglas Wood) Newsgroups: comp.sys.atari.st Subject: Re: Memory Access in Modula 2 Message-ID: <728@esl.UUCP> Date: 1 Jul 88 19:25:36 GMT References: <3188@druhi.ATT.COM> Reply-To: dew@esl.UUCP (Douglas Wood) Organization: ESL, Inc., Sunnyvale, CA. Lines: 16