On 07/13/2010 05:38 PM, Hans-Peter Diettrich wrote:
I don't know details about this CPU, but possibly priviledged
operations (and registers) are not part of the CPU definition, because
these cannot be used in ordinary applications.
It may be a good idea to create multiple code generators, for machines
that can be used either for non-priviledged (application) or
privileged (system, driver...) coding. At least a priviledge level
should be passed to the compiler and assembler, so that it can flag
the need for privileged instructions in the given source code.
If necessary, you can always code the very unusual instructions manually
to hex code and provide them as DC in the ASM code.
-Michael
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel