🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #3259

Re: Assembler + Modula-2 HOW ?

#3259
From: Michel De Rosa
Date: Sun, 11 Feb 1996 19:31
26 lines
1601 bytes
Stuart Elliott CES92 (selliott@cs.strath.ac.uk) wrote:
: Hi,
: 
: 	I have a problem using the (shareware) Fitted Technologies
: Modula-2 compiler and I was wondering if anyone in here could help.
: [...]
: 	I need to include some DSP assembly language into my Modula-2
: program. So far I've discovered that I need to use a "code" statement
: for each assembly language opcode, e.g. CODE(57).

With FST-M2 (at least up to v3.1), you use the 'asm' keyword, to insert
assembly language statements, into your code. These statements have
a syntax similar to stand-alone assemblers (e.g.  mov ax, bx).

You should read the documentation file, fmodula.doc if i remember correctly,
since there's more there, than i could (reasonably) cover in a single post.

But that would take care of x86 machine language, for your DSP, it depends
entirelly on exactly how you communicate with it.. You might not even need
to use 'asm' (or CODE), to send instructions to it.. Is this a expansion
board? How to you talk to it (thru I/O ports, or perhaps some common Memory
area shared between the pc and the board? a combination of both?).

Ciao!
Michel De Rosa
aliath@nyongwa.montreal.qc.ca
Technical Details
Message-ID: <DMMM8H.Dn6@nyongwa.montreal.qc.ca>
Path: arc1-ca.pugleaf.net!mcrcim.mcgill.edu!nyongwa!aliath
References: <4eq5k2$34u@dunlop.cs.strath.ac.uk>

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.modula2
Path: arc1-ca.pugleaf.net!mcrcim.mcgill.edu!nyongwa!aliath
From: aliath@nyongwa.montreal.qc.ca (Michel De Rosa)
Subject: Re: Assembler + Modula-2 HOW ?
Message-ID: <DMMM8H.Dn6@nyongwa.montreal.qc.ca>
Organization: Radio Free Nyongwa, Montreal (Qc), Canada
Date: Sun, 11 Feb 1996 19:31:28 GMT
References: <4eq5k2$34u@dunlop.cs.strath.ac.uk>
X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]