Article View: comp.lang.modula2
Article #3219Assembler + Modula-2 HOW ?
From: Stuart Elliott CES92
Date: Thu, 01 Feb 1996 10:45
Date: Thu, 01 Feb 1996 10:45
45 lines
1952 bytes
1952 bytes
Hi, I have a problem using the (shareware) Fitted Technologies Modula-2 compiler and I was wondering if anyone in here could help. I've already checked the FAQ as well as several books, all without success. I should also state that this is my first Modula-2 program and have had to fight to be allowed to use this language. So, please folks, don't let me down. ;-) 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). However, when this was put into the program, the compiler seemed to accept the command word "CODE" but then barfed at the "5", giving an "unknown id" error message. I really need the following questions answered. 1. Is it possible to include non-Intel opcodes in a Modula-2 program that is being compiled on a standard Intel-based PC ? 2. If so, do I put the assembly opcodes into a separate module ? 3. How do I "transfer" control to the assembly opcodes, let them run to conclusion and then return control back to the Modula-2 program ? e.g. do I use TRANSFER/IOTRANSFER, NEWPROCESS/PROCESS ... ? As I stated previously, all that I could uncover so far was that it was necessary to use the "CODE" instruction. However, that was shown using Intel opcodes. If anyone can offer some answers to these problems could they please reply to :- selliott@cs.strath.ac.uk Thanks very much in advance for any help given. Stuart
Technical Details
Message-ID:
<4eq5k2$34u@dunlop.cs.strath.ac.uk>Path:
arc1-ca.pugleaf.net!bradford.ac.uk!strath-cs!selliottShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!bradford.ac.uk!strath-cs!selliott From: selliott@cs.strath.ac.uk (Stuart Elliott CES92) Newsgroups: comp.lang.modula2 Subject: Assembler + Modula-2 HOW ? Date: 1 Feb 1996 10:45:21 GMT Organization: Computer Science Dept., Strathclyde University., Glasgow, Scotland. Distribution: world Message-ID: <4eq5k2$34u@dunlop.cs.strath.ac.uk> NNTP-Posting-Host: fleming-09.cs.strath.ac.uk