Path: 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 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. ... 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