🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #85

Pragma and inline assembly

#85
From: Ralph Kringhs
Date: Sun, 05 Apr 1992 01:35
17 lines
880 bytes
Yes, you can use straight Assembler stuff in Modula-2.
The system provided for it are CODE procedures. They look like this :

PROCEDURE WhatEver (Aparam : AnyType)
BEGIN
CODE
  <state your assembler here)
END WhatEver ;

A second method is to put the assembler into an array of byte
and jump to it.



--  
uucp: uunet!m2xenix!puddle!2!295!27!Ralph.Kringhs
Internet: Ralph.Kringhs@f27.n295.z2.fidonet.org
Technical Details
Message-ID: <13996.29E2857E@puddle.fidonet.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!psgrain!m2xenix!puddle!f27.n295.z2.fidonet.org!Ralph.Kringhs

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!psgrain!m2xenix!puddle!f27.n295.z2.fidonet.org!Ralph.Kringhs
From: Ralph.Kringhs@f27.n295.z2.fidonet.org (Ralph Kringhs)
Newsgroups: comp.lang.modula2
Subject: Pragma and inline assembly
Message-ID: <13996.29E2857E@puddle.fidonet.org>
Date: 5 Apr 92 01:35:10 GMT
Article-I.D.: puddle.13996.29E2857E
Sender: ufgate@puddle.fidonet.org (newsout1.26)
Organization: FidoNet node 2:295/27 - Horse Power, Antwerpen B
Lines: 17