fel said:
2000 LDM 0, 1004 // R0 = a //
2004 LDM 2, 1008 // R2 = b //
2008 MUL 0, 2 // R0 = a * b //
2010 LDM 1, 1012 // R1 = c //
2014 LDM 2, 1016 // R2 = d //
2018 MUL 1, 2 // R1 = c * d //
2020 SUB 0, 1 // R0 = a * b - c * d //
2022 STM 0, 1000 // Mot[1000] = a * b - c * d //
2026 HALT 0, 0
1004 LIT F(1.2) // a
1008 LIT F(1.3) // b
1012 LIT F(1.4) // c
1016 LIT F(1.5) // d
I heard of a java JAR thing to compile this, but i can't recognize
what it is...
Looks like assembly language, and it is off-topic on c.l.c.
The chief joy of many regulars in clc is apparently to tell most of the
questioners that their query is OFF-TOPIC. Perhaps they should wait a
bit before putting their wet blanket on the question. Someone might
know the answer, or know where the answer can be found, and it is a very
small expenditure of space. After all, I see a tremendous amount of
space used in quibbles over what is the *orthodox* (standard) C code.
If you can't help, don't hinder.
After seeing the response my previous remarks received:
Mr Falconer said "Looks like assembly language", then he added the
phrase "and it is off-topic on c.l.c.", which he need not have said. the
OP asked a legitimate question. He obviously didn't know whether it was
something pertinent to clc. Having got the answer, he need not have been
given the rebuke, which might have discouraged someone else from asking
a question about something that _was_ on topic, but that he might doubt
was on topic.
Further, the quality of being on-topic or off-topic is not an absolute.
A remark might be on-topic on several groups. Some groups tend to be
more restrictive than others in their definition. Perl allows expansion
by modules that include C code, so questions about C-in-perl are
sometimes found on comp.lang.misc. Similarly for questions about
calling perl from within C. Other groups are more or less restrictive
in this regard. clc seems to be one of the most restrictive. I doubt
that any question about the marriage of perl and C would be tolerated
here.
Sometimes several groups have overlapping topics. Some groups are much
more active than others. I originally asked a few questions on
gnu.gcc.help, because that is the compiler I use, but soon saw that
there was not much traffic there. Though clc should include the
territory of ggh, I have a suspicion that my question, which was
eventually answered on ggh, would have been off-topic here, because it
dealt with the peculiarities of gcc on win32. clc is _very_ restrictive
about that sort of thing, but a microsoft group probably would have been
even more restrictive.
As to the amount of 'space' that is appropriate for a topic, I see 153
messages in the thread 'highly efficient string reversal code', which
was an obvious joke. Why be so quick to slap the hand of the innocent,
but naive, questioner who over-steps a bound he may not have been aware
of, and so lenient with a troll?
I will say no more on this topic.